Word

Trait Word 

Source
pub trait Word:
    UnsignedInt
    + Bounded
    + ToPrimitive
    + Word
    + NumCast
    + Copy
    + Send
    + Sync
    + Debug
    + IntoAtomic
    + 'static {
    const BITS: usize = _;
}
Expand description

A trait that abstracts over the primitive unsigned integer types that can serve as the storage words in a FixedVec.

This trait establishes a contract for what constitutes a “machine word” for storage, providing access to its size in bits and requiring the necessary traits for bit-level operations.

Provided Associated Constants§

Source

const BITS: usize = _

The number of bits in this word type (e.g., 64 for u64).

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.

Implementations on Foreign Types§

Source§

impl Word for u8

Source§

impl Word for u16

Source§

impl Word for u32

Source§

impl Word for u64

Source§

impl Word for usize

Implementors§