(set: T::Repr)
| 68 | /// Constructs an EnumSet from the underlying repr |
| 69 | #[inline(always)] |
| 70 | pub const fn new<T: EnumSetType>(set: T::Repr) -> EnumSet<T> { |
| 71 | EnumSet { repr: set } |
| 72 | } |
| 73 | } |
| 74 | |
| 75 | /// Creates an [`EnumSet`](crate::EnumSet) literal, which can be used in const contexts. |
no outgoing calls