pub enum ModuleItemId {
Constant(ConstantId),
Submodule(SubmoduleId),
Use(UseId),
FreeFunction(FreeFunctionId),
Struct(StructId),
Enum(EnumId),
TypeAlias(ModuleTypeAliasId),
ImplAlias(ImplAliasId),
Trait(TraitId),
Impl(ImplDefId),
ExternType(ExternTypeId),
ExternFunction(ExternFunctionId),
}
Expand description
Id for direct children of a module.
Variants§
Constant(ConstantId)
Submodule(SubmoduleId)
Use(UseId)
FreeFunction(FreeFunctionId)
Struct(StructId)
Enum(EnumId)
TypeAlias(ModuleTypeAliasId)
ImplAlias(ImplAliasId)
Trait(TraitId)
Impl(ImplDefId)
ExternType(ExternTypeId)
ExternFunction(ExternFunctionId)
Trait Implementations§
Source§impl Clone for ModuleItemId
impl Clone for ModuleItemId
Source§fn clone(&self) -> ModuleItemId
fn clone(&self) -> ModuleItemId
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ModuleItemId
impl Debug for ModuleItemId
Source§impl<T: ?Sized + Upcast<dyn DefsGroup + 'static>> DebugWithDb<T> for ModuleItemId
impl<T: ?Sized + Upcast<dyn DefsGroup + 'static>> DebugWithDb<T> for ModuleItemId
Source§impl Hash for ModuleItemId
impl Hash for ModuleItemId
Source§impl LanguageElementId for ModuleItemId
impl LanguageElementId for ModuleItemId
fn module_file_id(&self, db: &dyn DefsGroup) -> ModuleFileId
fn untyped_stable_ptr(&self, db: &dyn DefsGroup) -> SyntaxStablePtrId
fn stable_location(&self, db: &dyn DefsGroup) -> StableLocation
fn parent_module(&self, db: &dyn DefsGroup) -> ModuleId
fn file_index(&self, db: &dyn DefsGroup) -> FileIndex
Source§impl OptionFrom<LookupItemId> for ModuleItemId
impl OptionFrom<LookupItemId> for ModuleItemId
fn option_from(other: LookupItemId) -> Option<Self>
Source§impl OptionFrom<ModuleItemId> for ConstantId
impl OptionFrom<ModuleItemId> for ConstantId
fn option_from(other: ModuleItemId) -> Option<Self>
Source§impl OptionFrom<ModuleItemId> for EnumId
impl OptionFrom<ModuleItemId> for EnumId
fn option_from(other: ModuleItemId) -> Option<Self>
Source§impl OptionFrom<ModuleItemId> for ExternFunctionId
impl OptionFrom<ModuleItemId> for ExternFunctionId
fn option_from(other: ModuleItemId) -> Option<Self>
Source§impl OptionFrom<ModuleItemId> for ExternTypeId
impl OptionFrom<ModuleItemId> for ExternTypeId
fn option_from(other: ModuleItemId) -> Option<Self>
Source§impl OptionFrom<ModuleItemId> for FreeFunctionId
impl OptionFrom<ModuleItemId> for FreeFunctionId
fn option_from(other: ModuleItemId) -> Option<Self>
Source§impl OptionFrom<ModuleItemId> for GenericTypeId
impl OptionFrom<ModuleItemId> for GenericTypeId
Conversion from ModuleItemId to GenericTypeId.
fn option_from(item: ModuleItemId) -> Option<Self>
Source§impl OptionFrom<ModuleItemId> for ImplAliasId
impl OptionFrom<ModuleItemId> for ImplAliasId
fn option_from(other: ModuleItemId) -> Option<Self>
Source§impl OptionFrom<ModuleItemId> for ImplDefId
impl OptionFrom<ModuleItemId> for ImplDefId
fn option_from(other: ModuleItemId) -> Option<Self>
Source§impl OptionFrom<ModuleItemId> for ModuleTypeAliasId
impl OptionFrom<ModuleItemId> for ModuleTypeAliasId
fn option_from(other: ModuleItemId) -> Option<Self>
Source§impl OptionFrom<ModuleItemId> for StructId
impl OptionFrom<ModuleItemId> for StructId
fn option_from(other: ModuleItemId) -> Option<Self>
Source§impl OptionFrom<ModuleItemId> for SubmoduleId
impl OptionFrom<ModuleItemId> for SubmoduleId
fn option_from(other: ModuleItemId) -> Option<Self>
Source§impl OptionFrom<ModuleItemId> for TraitId
impl OptionFrom<ModuleItemId> for TraitId
fn option_from(other: ModuleItemId) -> Option<Self>
Source§impl OptionFrom<ModuleItemId> for UseId
impl OptionFrom<ModuleItemId> for UseId
fn option_from(other: ModuleItemId) -> Option<Self>
Source§impl PartialEq for ModuleItemId
impl PartialEq for ModuleItemId
impl Copy for ModuleItemId
impl Eq for ModuleItemId
impl StructuralPartialEq for ModuleItemId
Auto Trait Implementations§
impl Freeze for ModuleItemId
impl RefUnwindSafe for ModuleItemId
impl Send for ModuleItemId
impl Sync for ModuleItemId
impl Unpin for ModuleItemId
impl UnwindSafe for ModuleItemId
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more