pub trait BitMemory: IsUnsigned + Sealed {
const BITS: u8;
const INDX: u8;
const MASK: u8;
const ONE: Self;
const ALL: Self;
}
Expand description
Description of an integer type.
This trait provides information used to describe integer-typed regions of memory and enables other parts of the crate to adequately describe the memory bus. This trait has no bearing on the processor instructions or registers used to interact with memory.
This trait cannot be implemented outside this crate.
Associated Constants
The bit width of the integer.
mem::size_of
returns the size in bytes, and bytes are always eight
bits on architectures Rust targets.