pub trait SetElement: Sized + Sealed {
type Storage: BitAnd<Output = Self::Storage> + BitAndAssign + BitOr<Output = Self::Storage> + BitOrAssign + BitXor<Output = Self::Storage> + BitXorAssign + Not<Output = Self::Storage> + PartialOrd + Binary + Copy;
const ALL: Self::Storage;
const NONE: Self::Storage;
// Required methods
fn count_possibilities(set: Self::Storage) -> u32;
fn as_set(self) -> Set<Self>;
}
Expand description
Trait for types that can be stored in a Set
Required Associated Constants§
Required Associated Types§
type Storage: BitAnd<Output = Self::Storage> + BitAndAssign + BitOr<Output = Self::Storage> + BitOrAssign + BitXor<Output = Self::Storage> + BitXorAssign + Not<Output = Self::Storage> + PartialOrd + Binary + Copy
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.