pub struct ModuleEnv {
pub(crate) module: BTreeMap<Ident, ModSymbol>,
pub(crate) attrs: Attrs,
}
Expand description
The type resolution environment within a specific module
Fields§
§module: BTreeMap<Ident, ModSymbol>
§attrs: Attrs
Implementations§
source§impl ModuleEnv
impl ModuleEnv
pub(crate) fn new(attrs: Attrs) -> Self
pub(crate) fn insert( &mut self, name: Ident, symbol: ModSymbol, ) -> Option<ModSymbol>
sourcepub fn iter(&self) -> impl Iterator<Item = (&Ident, &ModSymbol)> + '_
pub fn iter(&self) -> impl Iterator<Item = (&Ident, &ModSymbol)> + '_
Iterate over all name-item pairs in this module
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ModuleEnv
impl RefUnwindSafe for ModuleEnv
impl !Send for ModuleEnv
impl !Sync for ModuleEnv
impl Unpin for ModuleEnv
impl UnwindSafe for ModuleEnv
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)