pub trait AsUsizeIndex {
    fn as_usize(self) -> usize;
}
Expand description

Trivially casts to usize without panic.

Required Methods

Trivially casts to usize.

Implementations on Foreign Types

Implemented as the default type assigned to an integer by Rust is i32, so this makes it possible to use literal numerics for indices.

Implementors