pub trait BitSized<const LEN: usize>: ByteSized {
const BIT_SIZE: usize = _;
const MIN_BYTE_SIZE: usize = _;
// Provided methods
fn bit_size(&self) -> usize { ... }
fn min_byte_size(&self) -> usize { ... }
}Expand description
Type size information in bits.
Indicates a size of exactly LEN bits for the relevant data part of this type.
E.g. a bool has a BitSized of 1 bit.
Provided 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.