Trait bitvec::mem::BitRegister[][src]

pub trait BitRegister: Unsigned + BitOps {
    const INDX: u8;
    const MASK: u8;
    const ALL: Self;
}
Expand description

Register Descriptions

This trait describes the unsigned integer types that can be manipulated in a target processor’s general-purpose registers. It has no bearing on the processor instructions or registers used to interact with the memory bus, and solely exists to describe integers that can exist on a system.

Associated Constants

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. This is the value with the least significant INDX-many bits set high.

The literal !0.

Implementations on Foreign Types

u64 can only be used as a register on processors whose word size is at least 64 bits.

This implementation is not present on targets with 32-bit processor words.

Implementors