Trait slab::Index
[−]
[src]
pub trait Index { fn from_usize(i: usize) -> Self; fn as_usize(&self) -> usize; }
Slab can be indexed by any type implementing Index
trait.
Required Methods
fn from_usize(i: usize) -> Self
fn as_usize(&self) -> usize
Implementors
impl Index for usize