Trait swiss_army_knife::get_unchecked::AsUsizeIndex[][src]

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

Trivially casts to usize without panic.

Required methods

fn as_usize(self) -> usize[src]

Trivially casts to usize.

Implementations on Foreign Types

impl AsUsizeIndex for usize[src]

fn as_usize(self) -> usize[src]

impl<'a, AUI: AsUsizeIndex + Copy> AsUsizeIndex for &'a AUI[src]

fn as_usize(self) -> usize[src]

impl AsUsizeIndex for u8[src]

fn as_usize(self) -> usize[src]

impl AsUsizeIndex for u16[src]

fn as_usize(self) -> usize[src]

impl AsUsizeIndex for u32[src]

fn as_usize(self) -> usize[src]

impl AsUsizeIndex for u64[src]

fn as_usize(self) -> usize[src]

impl AsUsizeIndex for i32[src]

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

fn as_usize(self) -> usize[src]

Implementors