Struct rustc_ap_rustc_index::vec::IndexVec [−][src]
Fields
raw: Vec<T>Implementations
Create an IndexVec with n elements, where the value of each
element is the result of func(i). (The underlying vector will
be allocated only once, with a capacity of at least n.)
Gives the next index that will be assigned when push is
called.
pub fn drain<'a, R: RangeBounds<usize>>(
&'a mut self,
range: R
) -> impl Iterator<Item = T> + 'a[src]pub fn drain_enumerated<'a, R: RangeBounds<usize>>(
&'a mut self,
range: R
) -> impl Iterator<Item = (I, T)> + 'a[src]Returns mutable references to two distinct elements, a and b. Panics if a == b.
Returns mutable references to three distinct elements or panics otherwise.
Grows the index vector so that it contains an entry for
elem; if that is already true, then has no
effect. Otherwise, inserts new values as needed by invoking
fill_value.
Trait Implementations
Extends a collection with the contents of an iterator. Read more
extend_one)Extends a collection with exactly one element.
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
Creates a value from an iterator. Read more
Auto Trait Implementations
impl<I, T> RefUnwindSafe for IndexVec<I, T> where
T: RefUnwindSafe, impl<I, T> UnwindSafe for IndexVec<I, T> where
T: UnwindSafe, Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.