Type Alias hir_def::TraitAliasLoc

source ·
pub type TraitAliasLoc = ItemLoc<TraitAlias>;

Aliased Type§

struct TraitAliasLoc {
    pub container: ModuleId,
    pub id: ItemTreeId<TraitAlias>,
}

Fields§

§container: ModuleId§id: ItemTreeId<TraitAlias>

Trait Implementations§

source§

impl Intern for TraitAliasLoc

§

type Database<'db> = dyn DefDatabase + 'db

§

type ID = TraitAliasId

source§

fn intern(self, db: &Self::Database<'_>) -> TraitAliasId

source§

impl InternValue for TraitAliasLoc

§

type Key = ItemLoc<TraitAlias>

They key used to intern this value by.
source§

fn into_key(&self) -> Self::Key

Maps the value to a key that will be used to intern it.
source§

fn with_key<F: FnOnce(&Self::Key) -> T, T>(&self, f: F) -> T

Calls the given function with the key that was used to intern this value. Read more
source§

impl ItemTreeLoc for TraitAliasLoc