pub enum AttrDefId {
Show 16 variants
ModuleId(ModuleId),
FieldId(FieldId),
AdtId(AdtId),
FunctionId(FunctionId),
EnumVariantId(EnumVariantId),
StaticId(StaticId),
ConstId(ConstId),
TraitId(TraitId),
TraitAliasId(TraitAliasId),
TypeAliasId(TypeAliasId),
MacroId(MacroId),
ImplId(ImplId),
GenericParamId(GenericParamId),
ExternBlockId(ExternBlockId),
ExternCrateId(ExternCrateId),
UseId(UseId),
}
Variants§
ModuleId(ModuleId)
FieldId(FieldId)
AdtId(AdtId)
FunctionId(FunctionId)
EnumVariantId(EnumVariantId)
StaticId(StaticId)
ConstId(ConstId)
TraitId(TraitId)
TraitAliasId(TraitAliasId)
TypeAliasId(TypeAliasId)
MacroId(MacroId)
ImplId(ImplId)
GenericParamId(GenericParamId)
ExternBlockId(ExternBlockId)
ExternCrateId(ExternCrateId)
UseId(UseId)
Trait Implementations§
source§impl From<AssocItemId> for AttrDefId
impl From<AssocItemId> for AttrDefId
source§fn from(assoc: AssocItemId) -> Self
fn from(assoc: AssocItemId) -> Self
Converts to this type from the input type.
source§impl From<EnumVariantId> for AttrDefId
impl From<EnumVariantId> for AttrDefId
source§fn from(it: EnumVariantId) -> AttrDefId
fn from(it: EnumVariantId) -> AttrDefId
Converts to this type from the input type.
source§impl From<ExternCrateId> for AttrDefId
impl From<ExternCrateId> for AttrDefId
source§fn from(it: ExternCrateId) -> AttrDefId
fn from(it: ExternCrateId) -> AttrDefId
Converts to this type from the input type.
source§impl From<FunctionId> for AttrDefId
impl From<FunctionId> for AttrDefId
source§fn from(it: FunctionId) -> AttrDefId
fn from(it: FunctionId) -> AttrDefId
Converts to this type from the input type.
source§impl From<GenericParamId> for AttrDefId
impl From<GenericParamId> for AttrDefId
source§fn from(it: GenericParamId) -> AttrDefId
fn from(it: GenericParamId) -> AttrDefId
Converts to this type from the input type.
source§impl From<ItemContainerId> for AttrDefId
impl From<ItemContainerId> for AttrDefId
source§fn from(acid: ItemContainerId) -> Self
fn from(acid: ItemContainerId) -> Self
Converts to this type from the input type.
source§impl From<MacroRulesId> for AttrDefId
impl From<MacroRulesId> for AttrDefId
source§fn from(it: MacroRulesId) -> AttrDefId
fn from(it: MacroRulesId) -> AttrDefId
Converts to this type from the input type.
source§impl From<ProcMacroId> for AttrDefId
impl From<ProcMacroId> for AttrDefId
source§fn from(it: ProcMacroId) -> AttrDefId
fn from(it: ProcMacroId) -> AttrDefId
Converts to this type from the input type.
source§impl From<TraitAliasId> for AttrDefId
impl From<TraitAliasId> for AttrDefId
source§fn from(it: TraitAliasId) -> AttrDefId
fn from(it: TraitAliasId) -> AttrDefId
Converts to this type from the input type.
source§impl From<TypeAliasId> for AttrDefId
impl From<TypeAliasId> for AttrDefId
source§fn from(it: TypeAliasId) -> AttrDefId
fn from(it: TypeAliasId) -> AttrDefId
Converts to this type from the input type.
source§impl HasModule for AttrDefId
impl HasModule for AttrDefId
source§fn module(&self, db: &dyn DefDatabase) -> ModuleId
fn module(&self, db: &dyn DefDatabase) -> ModuleId
Returns the enclosing module this thing is defined within.
source§fn krate(&self, db: &dyn DefDatabase) -> CrateId
fn krate(&self, db: &dyn DefDatabase) -> CrateId
Returns the crate this thing is defined within.
source§impl TryFrom<ModuleDefId> for AttrDefId
impl TryFrom<ModuleDefId> for AttrDefId
impl Copy for AttrDefId
impl Eq for AttrDefId
impl StructuralPartialEq for AttrDefId
Auto Trait Implementations§
impl Freeze for AttrDefId
impl RefUnwindSafe for AttrDefId
impl Send for AttrDefId
impl Sync for AttrDefId
impl Unpin for AttrDefId
impl UnwindSafe for AttrDefId
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
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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