pub struct ModuleScope {
pub index_def: GlobalDefId,
pub entries: HashMap<IdentKey, PerNs>,
pub unnamed_traits: Vec<ResolvedBinding>,
pub visible_traits_hash: u64,
/* private fields */
}Expand description
Resolved symbol table of one module inside CrateDefMap.
Fields§
§index_def: GlobalDefId§entries: HashMap<IdentKey, PerNs>§unnamed_traits: Vec<ResolvedBinding>Anonymous trait imports (use Trait as _;) visible for method lookup in this module.
visible_traits_hash: u64Precomputed 64-bit hash of (visible_traits, has_implicit_prelude) for O(1) trait-item cache lookup.
Implementations§
Trait Implementations§
Source§impl Clone for ModuleScope
impl Clone for ModuleScope
Source§impl Debug for ModuleScope
impl Debug for ModuleScope
Auto Trait Implementations§
impl Forget for ModuleScope
impl Freeze for ModuleScopewhere
*const u8 is !null: Freeze,
PhantomData<(IdentKey, PerNs)>: Freeze,
PhantomData<ResolvedBinding>: Freeze,
*const ArcInner<[GlobalDefId]> is !null: Freeze,
PhantomData<ArcInner<[GlobalDefId]>>: Freeze,
impl Move for ModuleScope
impl RefUnwindSafe for ModuleScope
impl Send for ModuleScope
impl Sync for ModuleScope
impl Unpin for ModuleScope
impl UnsafeUnpin for ModuleScopewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<(IdentKey, PerNs)>: UnsafeUnpin,
PhantomData<ResolvedBinding>: UnsafeUnpin,
*const ArcInner<[GlobalDefId]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[GlobalDefId]>>: UnsafeUnpin,
impl UnwindSafe for ModuleScopewhere
HashMap<IdentKey, PerNs>: UnwindSafe,
RawVecInner: UnwindSafe,
Arc<[GlobalDefId]>: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more