pub struct Module {
pub parent: Option<DefID>,
pub types: HashMap<Sym, DefID>,
pub values: HashMap<Sym, DefID>,
pub imports: Vec<DefID>,
}
Fields§
§parent: Option<DefID>
§types: HashMap<Sym, DefID>
§values: HashMap<Sym, DefID>
§imports: Vec<DefID>
Implementations§
source§impl Module
impl Module
pub fn new(parent: DefID) -> Self
pub fn with_optional_parent(parent: Option<DefID>) -> Self
pub fn get(&self, name: Sym) -> (Option<DefID>, Option<DefID>)
pub fn get_type(&self, name: Sym) -> Option<DefID>
pub fn get_value(&self, name: Sym) -> Option<DefID>
Trait Implementations§
source§impl PartialEq for Module
impl PartialEq for Module
impl Eq for Module
impl StructuralPartialEq for Module
Auto Trait Implementations§
impl Freeze for Module
impl RefUnwindSafe for Module
impl Send for Module
impl Sync for Module
impl Unpin for Module
impl UnwindSafe for Module
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