pub trait Bit:
Sealed
+ Copy
+ Default
+ 'static {
const U8: u8;
const BOOL: bool;
// Required methods
fn new() -> Self;
fn to_u8() -> u8;
fn to_bool() -> bool;
}
Expand description
The marker trait for compile time bits.
Required Associated Constants§
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.