Struct ra_ap_hir_def::ModuleId [−][src]
pub struct ModuleId { pub local_id: LocalModuleId, // some fields omitted }
Fields
local_id: LocalModuleId
The module’s ID in its originating DefMap
.
Implementations
Returns true
if this module represents a block expression.
Returns false
if this module is a submodule inside a block expression
(eg. m
in { mod m {} }
).
Trait Implementations
Performs the conversion.
Performs the conversion.
Builds a resolver for type references inside this def.
Auto Trait Implementations
impl RefUnwindSafe for ModuleId
impl UnwindSafe for ModuleId
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.