pub trait Bits:
Copy
+ Eq
+ PartialEq{
const BITS: u16;
const ZERO: Self;
const ONE: Self;
// Provided method
fn is_zero(self) -> bool { ... }
}
Expand description
Types suitable for bit representations.
Required Associated Constants§
Provided 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.