pub enum AttrDefId {
Show 13 variants
ModuleId(ModuleId),
AdtId(AdtId),
FunctionId(FunctionId),
EnumVariantId(EnumVariantId),
StaticId(StaticId),
ConstId(ConstId),
TraitId(TraitId),
TypeAliasId(TypeAliasId),
MacroId(MacroId),
ImplId(ImplId),
ExternBlockId(ExternBlockId),
ExternCrateId(ExternCrateId),
UseId(UseId),
}Variants§
ModuleId(ModuleId)
AdtId(AdtId)
FunctionId(FunctionId)
EnumVariantId(EnumVariantId)
StaticId(StaticId)
ConstId(ConstId)
TraitId(TraitId)
TypeAliasId(TypeAliasId)
MacroId(MacroId)
ImplId(ImplId)
ExternBlockId(ExternBlockId)
ExternCrateId(ExternCrateId)
UseId(UseId)
Trait Implementations§
impl Copy for AttrDefId
impl Eq for AttrDefId
Source§impl From<AssocItemId> for AttrDefId
impl From<AssocItemId> for AttrDefId
Source§fn from(value: AssocItemId) -> Self
fn from(value: 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<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<ModuleIdLt<'static>> for AttrDefId
impl From<ModuleIdLt<'static>> for AttrDefId
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<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 SalsaStructInDb for AttrDefId
impl SalsaStructInDb for AttrDefId
Source§const LEAF_TYPE_IDS: &'static [ConstTypeId]
const LEAF_TYPE_IDS: &'static [ConstTypeId]
The type IDs of all concrete (leaf) salsa struct types that this type can contain. Read more
type MemoIngredientMap = MemoIngredientIndices
Source§fn lookup_ingredient_index(__zalsa: &Zalsa) -> IngredientIndices
fn lookup_ingredient_index(__zalsa: &Zalsa) -> IngredientIndices
Lookup or create ingredient indices. Read more
Source§fn entries(zalsa: &Zalsa) -> impl Iterator<Item = DatabaseKeyIndex> + '_
fn entries(zalsa: &Zalsa) -> impl Iterator<Item = DatabaseKeyIndex> + '_
Returns the IDs of any instances of this struct in the database.
Source§fn cast(id: Id, type_id: TypeId) -> Option<Self>
fn cast(id: Id, type_id: TypeId) -> Option<Self>
Plumbing to support nested salsa supertypes. Read more
Source§unsafe fn memo_table(
zalsa: &Zalsa,
id: Id,
current_revision: Revision,
) -> MemoTableWithTypes<'_>
unsafe fn memo_table( zalsa: &Zalsa, id: Id, current_revision: Revision, ) -> MemoTableWithTypes<'_>
Return the memo table associated with
id. Read moreimpl 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 UnsafeUnpin 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,
§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<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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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