Trait bitvec::mem::BitMemory[][src]

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.

Issue #76904 will place this constant on the fundamentals directly, as a u32.

The number of bits required to store an index in the range 0 .. BITS.

A mask over all bits that can be used as an index within the element.

The value with only its least significant bit set to 1.

The value with all of its bits set to 1.

Implementations on Foreign Types

Implementors