[][src]Trait rustc_index::vec::Idx

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

Represents some newtyped usize wrapper.

Purpose: avoid mixing indexes for different bitvector domains.

Required methods

pub fn new(idx: usize) -> Self[src]

pub fn index(self) -> usize[src]

Loading content...

Provided methods

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

pub fn plus(self, amount: usize) -> Self[src]

Loading content...

Implementations on Foreign Types

impl Idx for usize[src]

impl Idx for u32[src]

Loading content...

Implementors

Loading content...