Trait atlatl::index::Index [−][src]
pub trait Index: Unsigned + Bounded + Eq + Copy + Hash + Default + AddAssign + SubAssign + Debug + Display { fn as_usize(self) -> usize; fn as_index(i: usize) -> Self; fn bound() -> usize { ... } }
A minimal trait for unchecked casting of unsigned integers to usize
,
for indexing purposes.
Required Methods
Provided Methods
Implementations on Foreign Types
impl Index for usize
[src]
impl Index for usize
impl Index for u16
[src]
impl Index for u16
impl Index for u32
[src]
impl Index for u32
impl Index for u64
[src]
impl Index for u64