Struct rustc_hir::hir_id::HirIdVec[−][src]

pub struct HirIdVec<T> {
    map: IndexVec<LocalDefId, IndexVec<ItemLocalId, T>>,
}

Fields

map: IndexVec<LocalDefId, IndexVec<ItemLocalId, T>>

Implementations

impl<T> HirIdVec<T>[src]

pub fn push_owner(&mut self, id: LocalDefId)[src]

pub fn push(&mut self, id: HirId, value: T)[src]

pub fn push_sparse(&mut self, id: HirId, value: T) where
    T: Default, 
[src]

pub fn get(&self, id: HirId) -> Option<&T>[src]

pub fn get_owner(&self, id: LocalDefId) -> &IndexVec<ItemLocalId, T>[src]

pub fn iter(&self) -> impl Iterator<Item = &T>[src]

pub fn iter_enumerated(&self) -> impl Iterator<Item = (HirId, &T)>[src]

Trait Implementations

impl<T: Clone> Clone for HirIdVec<T>[src]

impl<T: Debug> Debug for HirIdVec<T>[src]

impl<T, __D: Decoder> Decodable<__D> for HirIdVec<T> where
    T: Decodable<__D>, 
[src]

impl<T: Default> Default for HirIdVec<T>[src]

impl<T, __E: Encoder> Encodable<__E> for HirIdVec<T> where
    T: Encodable<__E>, 
[src]

impl<T> Index<HirId> for HirIdVec<T>[src]

type Output = T

The returned type after indexing.

impl<T> IndexMut<HirId> for HirIdVec<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for HirIdVec<T> where
    T: RefUnwindSafe, 

impl<T> Send for HirIdVec<T> where
    T: Send, 

impl<T> Sync for HirIdVec<T> where
    T: Sync, 

impl<T> Unpin for HirIdVec<T> where
    T: Unpin, 

impl<T> UnwindSafe for HirIdVec<T> where
    T: UnwindSafe, 

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone, 
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.