Enum ra_ap_hir_def::ModuleDefId [−][src]
pub enum ModuleDefId { ModuleId(ModuleId), FunctionId(FunctionId), AdtId(AdtId), EnumVariantId(EnumVariantId), ConstId(ConstId), StaticId(StaticId), TraitId(TraitId), TypeAliasId(TypeAliasId), BuiltinType(BuiltinType), }
Expand description
The defs which can be visible in the module.
Variants
ModuleId(ModuleId)
FunctionId(FunctionId)
AdtId(AdtId)
EnumVariantId(EnumVariantId)
ConstId(ConstId)
StaticId(StaticId)
TraitId(TraitId)
TypeAliasId(TypeAliasId)
BuiltinType(BuiltinType)
Implementations
Returns the module containing self
(or self
, if self
is itself a module).
Returns None
if self
refers to a primitive type.
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
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 ModuleDefId
impl Send for ModuleDefId
impl Sync for ModuleDefId
impl Unpin for ModuleDefId
impl UnwindSafe for ModuleDefId
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.