pub trait BitSetLimit {
const MAX_SET_INDEX: usize;
}
Expand description
Trait to define static limit on set bits.
Required Associated Constants§
Sourceconst MAX_SET_INDEX: usize
const MAX_SET_INDEX: usize
Largest possible bit index that can be set. Any larger index will always be unset. Setting larger index is now allowed.
Unbound bit-sets should specify `MAX_SET_INDEX = usize::MAX;
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.