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

pub trait BitMemory: IsUnsigned + Sealed {
    const BITS: u8;
    const INDX: u8;
    const MASK: u8;
    const ONE: Self;
    const ALL: Self;
}

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

const BITS: u8

The bit width of the integer.

mem::size_of returns the size in bytes, and bytes are always eight bits on architectures Rust targets.

const INDX: u8

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

const MASK: u8

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

const ONE: Self

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

const ALL: Self

The value with all of its bits set to 1.

Loading content...

Implementations on Foreign Types

impl BitMemory for u8[src]

impl BitMemory for u16[src]

impl BitMemory for u32[src]

impl BitMemory for u64[src]

impl BitMemory for u128[src]

impl BitMemory for usize[src]

Loading content...

Implementors

Loading content...