Struct rustc_data_structures::indexed_vec::IndexVec [] [src]

pub struct IndexVec<I: Idx, T> {
    pub raw: Vec<T>,
    // some fields omitted
}

Fields

Methods

impl<I: Idx, T> IndexVec<I, T>
[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

Important traits for IntoIter<T>
[src]

[src]

Important traits for Iter<'a, T>
[src]

[src]

Important traits for Map<I, F>
[src]

Important traits for IterMut<'a, T>
[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

Return mutable references to two distinct elements, a and b. Panics if a == b.

impl<I: Idx, T: Clone> IndexVec<I, T>
[src]

[src]

impl<I: Idx, T: Ord> IndexVec<I, T>
[src]

Trait Implementations

impl<I: Clone + Idx, T: Clone> Clone for IndexVec<I, T>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<I: PartialEq + Idx, T: PartialEq> PartialEq for IndexVec<I, T>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<I: Eq + Idx, T: Eq> Eq for IndexVec<I, T>
[src]

impl<I: Hash + Idx, T: Hash> Hash for IndexVec<I, T>
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl<I: Idx, T> Send for IndexVec<I, T> where
    T: Send
[src]

impl<I: Idx, T: Encodable> Encodable for IndexVec<I, T>
[src]

[src]

impl<I: Idx, T: Decodable> Decodable for IndexVec<I, T>
[src]

[src]

impl<I: Idx, T: Debug> Debug for IndexVec<I, T>
[src]

[src]

Formats the value using the given formatter. Read more

impl<I: Idx, T> Index<I> for IndexVec<I, T>
[src]

The returned type after indexing.

Important traits for &'a mut W
[src]

Performs the indexing (container[index]) operation.

impl<I: Idx, T> IndexMut<I> for IndexVec<I, T>
[src]

Important traits for &'a mut W
[src]

Performs the mutable indexing (container[index]) operation.

impl<I: Idx, T> Default for IndexVec<I, T>
[src]

[src]

Returns the "default value" for a type. Read more

impl<I: Idx, T> Extend<T> for IndexVec<I, T>
[src]

[src]

Extends a collection with the contents of an iterator. Read more

impl<I: Idx, T> FromIterator<T> for IndexVec<I, T>
[src]

[src]

Creates a value from an iterator. Read more

impl<I: Idx, T> IntoIterator for IndexVec<I, T>
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Important traits for IntoIter<T>
[src]

Creates an iterator from a value. Read more

impl<'a, I: Idx, T> IntoIterator for &'a IndexVec<I, T>
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Important traits for 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]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Important traits for 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]

[src]

Auto Trait Implementations

impl<I, T> Sync for IndexVec<I, T> where
    T: Sync