pub trait BitSize<const LEN: usize>: DataSize {
const BITS: usize = LEN;
const BYTES_CEIL: usize = _;
}
Expand description
Indicates a size of exactly LEN
bits.
Provided Associated Constants§
Sourceconst BYTES_CEIL: usize = _
const BYTES_CEIL: usize = _
The size of this type in bytes, rounded up if it’s not a multiple of 8.
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.