pub trait BitSize<const LEN: usize>: Size {
const BIT_SIZE: usize = _;
const MIN_BYTE_SIZE: usize = _;
// Provided methods
fn bit_size(&self) -> usize { ... }
fn min_byte_size(&self) -> usize { ... }
}
Available on crate feature
mem
only.Expand description
Indicates a size of exactly LEN
bits for the relevant data part of this type.
E.g. a bool
has a BitSize of 1 bit.
Provided Associated Constants§
Provided Methods§
Object Safety§
This trait is not object safe.