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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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