Struct rustc_typeck::ty::AssocItems [−][src]
pub struct AssocItems<'tcx> {
pub(super) items: SortedIndexMultiMap<u32, Symbol, &'tcx AssocItem>,
}Expand description
A list of ty::AssocItems in definition order that allows for efficient lookup by name.
When doing lookup by name, we try to postpone hygienic comparison for as long as possible since
it is relatively expensive. Instead, items are indexed by Symbol and hygienic comparison is
done only on items with the same name.
Fields
items: SortedIndexMultiMap<u32, Symbol, &'tcx AssocItem>Auto Trait Implementations
impl<'tcx> RefUnwindSafe for AssocItems<'tcx>
impl<'tcx> !Send for AssocItems<'tcx>
impl<'tcx> !Sync for AssocItems<'tcx>
impl<'tcx> Unpin for AssocItems<'tcx>
impl<'tcx> UnwindSafe for AssocItems<'tcx>
Blanket Implementations
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 48 bytes