Struct rustc_hir::hir_id::HirIdVec [−][src]
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]
T: Default,
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]
T: Decodable<__D>,
impl<T: Default> Default for HirIdVec<T>[src]
impl<T, __E: Encoder> Encodable<__E> for HirIdVec<T> where
T: Encodable<__E>, [src]
T: Encodable<__E>,
impl<T> Index<HirId> for HirIdVec<T>[src]
impl<T> IndexMut<HirId> for HirIdVec<T>[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for HirIdVec<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for HirIdVec<T> where
T: Send,
T: Send,
impl<T> Sync for HirIdVec<T> where
T: Sync,
T: Sync,
impl<T> Unpin for HirIdVec<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for HirIdVec<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,