pub trait BitBlock:
Copy
+ Eq
+ Not<Output = Self>
+ BitAnd<Self, Output = Self>
+ BitAndAssign
+ BitOr<Self, Output = Self>
+ Shl<usize, Output = Self> {
const BITS: u32;
const ONE: Self;
const ZERO: Self;
// Required methods
fn wrapping_sub(self, rhs: Self) -> Self;
fn trailing_zeros(self) -> u32;
}Expand description
A type used to represent blocks in a bit set. A smaller type, compared to usize, means taking less advantage of native operations. A larger type means we might over-allocate more.
Required Associated Constants§
Required Methods§
fn wrapping_sub(self, rhs: Self) -> Self
fn trailing_zeros(self) -> u32
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.