pub trait BitSetIndex:
Copy
+ 'static
+ Ord
+ Debug
+ Hash {
// Required methods
fn from_usize(index: usize) -> Self;
fn index(self) -> usize;
}Expand description
An index that can be stored in a bitset.
Required Methods§
Sourcefn from_usize(index: usize) -> Self
fn from_usize(index: usize) -> Self
Creates an index from its integer representation.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".