Trait rustc_data_structures::indexed_vec::Idx[][src]

pub trait Idx: Copy + 'static + Ord + Debug + Hash {
    fn new(idx: usize) -> Self;
fn index(self) -> usize; fn increment_by(&mut self, amount: usize) { ... } }

Represents some newtyped usize wrapper.

(purpose: avoid mixing indexes for different bitvector domains.)

Required Methods

Provided Methods

Implementations on Foreign Types

impl Idx for usize
[src]

impl Idx for u32
[src]

Implementors