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

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

fn new(idx: usize) -> Self

fn index(self) -> usize

Loading content...

Provided methods

fn increment_by(&mut self, amount: usize)

Loading content...

Implementations on Foreign Types

impl Idx for usize[src]

fn increment_by(&mut self, amount: usize)[src]

impl Idx for u32[src]

fn increment_by(&mut self, amount: usize)[src]

Loading content...

Implementors

Loading content...