Struct ra_ap_hir_def::nameres::ModuleData [−][src]
pub struct ModuleData { pub parent: Option<LocalModuleId>, pub children: FxHashMap<Name, LocalModuleId>, pub scope: ItemScope, pub origin: ModuleOrigin, }
Fields
parent: Option<LocalModuleId>
children: FxHashMap<Name, LocalModuleId>
scope: ItemScope
origin: ModuleOrigin
Where does this module come from?
Implementations
Returns a node which defines this module. That is, a file or a mod foo {}
with items.
Returns a node which declares this module, either a mod foo;
or a mod foo {}
.
None
for the crate root or block.
Trait Implementations
Returns the “default value” for a type. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ModuleData
impl Send for ModuleData
impl Sync for ModuleData
impl Unpin for ModuleData
impl UnwindSafe for ModuleData
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.