Struct rustc_data_structures::indexed_vec::IndexVec
[−]
[src]
pub struct IndexVec<I: Idx, T> { pub raw: Vec<T>, // some fields omitted }
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Fields
raw: Vec<T>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Methods
impl<I: Idx, T> IndexVec<I, T>
[src]
pub fn new() -> Self
[src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn with_capacity(capacity: usize) -> Self
[src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn from_elem<S>(elem: T, universe: &IndexVec<I, S>) -> Self where
T: Clone,
[src]
T: Clone,
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn from_elem_n(elem: T, n: usize) -> Self where
T: Clone,
[src]
T: Clone,
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn push(&mut self, d: T) -> I
[src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn pop(&mut self) -> Option<T>
[src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn len(&self) -> usize
[src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn is_empty(&self) -> bool
[src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
ⓘImportant traits for IntoIter<T>pub fn into_iter(self) -> IntoIter<T>
[src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn into_iter_enumerated(self) -> Enumerated<I, IntoIter<T>>
[src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
ⓘImportant traits for Iter<'a, T>pub fn iter(&self) -> Iter<T>
[src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn iter_enumerated(&self) -> Enumerated<I, Iter<T>>
[src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
ⓘImportant traits for Map<I, F>pub fn indices(&self) -> Map<Range<usize>, IntoIdx<I>>
[src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
ⓘImportant traits for IterMut<'a, T>pub fn iter_mut(&mut self) -> IterMut<T>
[src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn iter_enumerated_mut(&mut self) -> Enumerated<I, IterMut<T>>
[src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn drain<'a, R: RangeArgument<usize>>(
&'a mut self,
range: R
) -> impl Iterator<Item = T> + 'a
[src]
&'a mut self,
range: R
) -> impl Iterator<Item = T> + 'a
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn drain_enumerated<'a, R: RangeArgument<usize>>(
&'a mut self,
range: R
) -> impl Iterator<Item = (I, T)> + 'a
[src]
&'a mut self,
range: R
) -> impl Iterator<Item = (I, T)> + 'a
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn last(&self) -> Option<I>
[src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn shrink_to_fit(&mut self)
[src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn swap(&mut self, a: usize, b: usize)
[src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn truncate(&mut self, a: usize)
[src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn get(&self, index: I) -> Option<&T>
[src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn get_mut(&mut self, index: I) -> Option<&mut T>
[src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
impl<I: Idx, T: Clone> IndexVec<I, T>
[src]
pub fn resize(&mut self, new_len: usize, value: T)
[src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
impl<I: Idx, T: Ord> IndexVec<I, T>
[src]
pub fn binary_search(&self, value: &T) -> Result<I, I>
[src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Trait Implementations
impl<I: Clone + Idx, T: Clone> Clone for IndexVec<I, T>
[src]
fn clone(&self) -> IndexVec<I, T>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<I: PartialEq + Idx, T: PartialEq> PartialEq for IndexVec<I, T>
[src]
fn eq(&self, __arg_0: &IndexVec<I, T>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &IndexVec<I, T>) -> bool
[src]
This method tests for !=
.
impl<I: Eq + Idx, T: Eq> Eq for IndexVec<I, T>
[src]
impl<I: Idx, T: Encodable> Encodable for IndexVec<I, T>
[src]
fn encode<S: Encoder>(&self, s: &mut S) -> Result<(), S::Error>
[src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
impl<I: Idx, T: Decodable> Decodable for IndexVec<I, T>
[src]
fn decode<D: Decoder>(d: &mut D) -> Result<Self, D::Error>
[src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
impl<I: Idx, T: Debug> Debug for IndexVec<I, T>
[src]
fn fmt(&self, fmt: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<I: Idx, T> Index<I> for IndexVec<I, T>
[src]
type Output = T
The returned type after indexing.
ⓘImportant traits for &'a mut Ifn index(&self, index: I) -> &T
[src]
Performs the indexing (container[index]
) operation.
impl<I: Idx, T> IndexMut<I> for IndexVec<I, T>
[src]
ⓘImportant traits for &'a mut Ifn index_mut(&mut self, index: I) -> &mut T
[src]
Performs the mutable indexing (container[index]
) operation.
impl<I: Idx, T> Default for IndexVec<I, T>
[src]
impl<I: Idx, T> Extend<T> for IndexVec<I, T>
[src]
fn extend<J: IntoIterator<Item = T>>(&mut self, iter: J)
[src]
Extends a collection with the contents of an iterator. Read more
impl<I: Idx, T> FromIterator<T> for IndexVec<I, T>
[src]
fn from_iter<J>(iter: J) -> Self where
J: IntoIterator<Item = T>,
[src]
J: IntoIterator<Item = T>,
Creates a value from an iterator. Read more
impl<I: Idx, T> IntoIterator for IndexVec<I, T>
[src]
type Item = T
The type of the elements being iterated over.
type IntoIter = IntoIter<T>
Which kind of iterator are we turning this into?
ⓘImportant traits for IntoIter<T>fn into_iter(self) -> IntoIter<T>
[src]
Creates an iterator from a value. Read more
impl<'a, I: Idx, T> IntoIterator for &'a IndexVec<I, T>
[src]
type Item = &'a T
The type of the elements being iterated over.
type IntoIter = Iter<'a, T>
Which kind of iterator are we turning this into?
ⓘImportant traits for Iter<'a, T>fn into_iter(self) -> Iter<'a, T>
[src]
Creates an iterator from a value. Read more
impl<'a, I: Idx, T> IntoIterator for &'a mut IndexVec<I, T>
[src]
type Item = &'a mut T
The type of the elements being iterated over.
type IntoIter = IterMut<'a, T>
Which kind of iterator are we turning this into?
ⓘImportant traits for IterMut<'a, T>fn into_iter(self) -> IterMut<'a, T>
[src]
Creates an iterator from a value. Read more
impl<I: Idx, T, CTX> HashStable<CTX> for IndexVec<I, T> where
T: HashStable<CTX>,
[src]
T: HashStable<CTX>,
fn hash_stable<W: StableHasherResult>(
&self,
ctx: &mut CTX,
hasher: &mut StableHasher<W>
)
[src]
&self,
ctx: &mut CTX,
hasher: &mut StableHasher<W>
)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?