Trait swiss_army_knife::get_unchecked::AsUsizeIndex
source · [−]Expand description
Trivially casts to usize
without panic.
Required Methods
Implementations on Foreign Types
sourceimpl<'a, AUI: AsUsizeIndex + Copy> AsUsizeIndex for &'a AUI
impl<'a, AUI: AsUsizeIndex + Copy> AsUsizeIndex for &'a AUI
sourceimpl AsUsizeIndex for i32
impl AsUsizeIndex for i32
Implemented as the default type assigned to an integer by Rust is i32
, so this makes it possible to use literal numerics for indices.