Enum ra_ap_hir_def::GenericDefId
source · pub enum GenericDefId {
FunctionId(FunctionId),
AdtId(AdtId),
TraitId(TraitId),
TypeAliasId(TypeAliasId),
ImplId(ImplId),
EnumVariantId(EnumVariantId),
ConstId(ConstId),
}
Variants§
FunctionId(FunctionId)
AdtId(AdtId)
TraitId(TraitId)
TypeAliasId(TypeAliasId)
ImplId(ImplId)
EnumVariantId(EnumVariantId)
ConstId(ConstId)
Trait Implementations§
source§impl ChildBySource for GenericDefId
impl ChildBySource for GenericDefId
fn child_by_source_to(
&self,
db: &dyn DefDatabase,
res: &mut DynMap,
file_id: HirFileId
)
fn child_by_source(&self, db: &dyn DefDatabase, file_id: HirFileId) -> DynMap
source§impl Clone for GenericDefId
impl Clone for GenericDefId
source§fn clone(&self) -> GenericDefId
fn clone(&self) -> GenericDefId
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 GenericDefId
impl Debug for GenericDefId
source§impl From<AdtId> for GenericDefId
impl From<AdtId> for GenericDefId
source§fn from(it: AdtId) -> GenericDefId
fn from(it: AdtId) -> GenericDefId
Converts to this type from the input type.
source§impl From<AssocItemId> for GenericDefId
impl From<AssocItemId> for GenericDefId
source§fn from(item: AssocItemId) -> Self
fn from(item: AssocItemId) -> Self
Converts to this type from the input type.
source§impl From<ConstId> for GenericDefId
impl From<ConstId> for GenericDefId
source§fn from(it: ConstId) -> GenericDefId
fn from(it: ConstId) -> GenericDefId
Converts to this type from the input type.
source§impl From<EnumId> for GenericDefId
impl From<EnumId> for GenericDefId
source§fn from(it: EnumId) -> GenericDefId
fn from(it: EnumId) -> GenericDefId
Converts to this type from the input type.
source§impl From<EnumVariantId> for GenericDefId
impl From<EnumVariantId> for GenericDefId
source§fn from(it: EnumVariantId) -> GenericDefId
fn from(it: EnumVariantId) -> GenericDefId
Converts to this type from the input type.
source§impl From<FunctionId> for GenericDefId
impl From<FunctionId> for GenericDefId
source§fn from(it: FunctionId) -> GenericDefId
fn from(it: FunctionId) -> GenericDefId
Converts to this type from the input type.
source§impl From<ImplId> for GenericDefId
impl From<ImplId> for GenericDefId
source§fn from(it: ImplId) -> GenericDefId
fn from(it: ImplId) -> GenericDefId
Converts to this type from the input type.
source§impl From<StructId> for GenericDefId
impl From<StructId> for GenericDefId
source§fn from(it: StructId) -> GenericDefId
fn from(it: StructId) -> GenericDefId
Converts to this type from the input type.
source§impl From<TraitId> for GenericDefId
impl From<TraitId> for GenericDefId
source§fn from(it: TraitId) -> GenericDefId
fn from(it: TraitId) -> GenericDefId
Converts to this type from the input type.
source§impl From<TypeAliasId> for GenericDefId
impl From<TypeAliasId> for GenericDefId
source§fn from(it: TypeAliasId) -> GenericDefId
fn from(it: TypeAliasId) -> GenericDefId
Converts to this type from the input type.
source§impl From<UnionId> for GenericDefId
impl From<UnionId> for GenericDefId
source§fn from(it: UnionId) -> GenericDefId
fn from(it: UnionId) -> GenericDefId
Converts to this type from the input type.
source§impl HasChildSource<Idx<LifetimeParamData>> for GenericDefId
impl HasChildSource<Idx<LifetimeParamData>> for GenericDefId
type Value = LifetimeParam
fn child_source(
&self,
db: &dyn DefDatabase
) -> InFile<ArenaMap<LocalLifetimeParamId, Self::Value>>
source§impl HasChildSource<Idx<TypeOrConstParamData>> for GenericDefId
impl HasChildSource<Idx<TypeOrConstParamData>> for GenericDefId
type Value = Either<TypeOrConstParam, Trait>
fn child_source(
&self,
db: &dyn DefDatabase
) -> InFile<ArenaMap<LocalTypeOrConstParamId, Self::Value>>
source§impl HasModule for GenericDefId
impl HasModule for GenericDefId
fn module(&self, db: &dyn DefDatabase) -> ModuleId
source§impl HasResolver for GenericDefId
impl HasResolver for GenericDefId
source§fn resolver(self, db: &dyn DefDatabase) -> Resolver
fn resolver(self, db: &dyn DefDatabase) -> Resolver
Builds a resolver for type references inside this def.
source§impl Hash for GenericDefId
impl Hash for GenericDefId
source§impl PartialEq<GenericDefId> for GenericDefId
impl PartialEq<GenericDefId> for GenericDefId
source§fn eq(&self, other: &GenericDefId) -> bool
fn eq(&self, other: &GenericDefId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for GenericDefId
impl Eq for GenericDefId
impl StructuralEq for GenericDefId
impl StructuralPartialEq for GenericDefId
Auto Trait Implementations§
impl RefUnwindSafe for GenericDefId
impl Send for GenericDefId
impl Sync for GenericDefId
impl Unpin for GenericDefId
impl UnwindSafe for GenericDefId
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.