UIndex

Trait UIndex 

Source
pub trait UIndex:
    Unsigned
    + Zero
    + One
    + Copy
    + Eq
    + Ord
    + PartialOrd
    + From<usize>
    + Into<usize>
    + Bounded
    + Hash { }
Expand description

A trait for unsigned integer types suitable for indexing operations.

This trait combines unsigned integer properties with zero/one elements, ordering capabilities, and conversion to/from usize. It’s designed for types that can be safely used as array or vector indices while providing mathematical operations and bounds checking.

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.

Implementors§