Skip to main content

Uint

Trait Uint 

Source
pub trait Uint:
    Sized
    + Copy
    + Default
    + PartialEq
    + AddAssign
    + Sub<Output = Self>
    + From<u8> {
    // Required method
    fn to_usize(self) -> usize;
}
Expand description

An unsigned index type: u32, the index of every VM container, and usize, a slice’s.

Required Methods§

Source

fn to_usize(self) -> usize

The index as a usize, the type of an iterator’s size_hint.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Uint for u32

Source§

impl Uint for usize

Implementors§