Type Alias hir_def::TraitLoc

source ·
pub type TraitLoc = ItemLoc<Trait>;

Aliased Type§

struct TraitLoc {
    pub container: ModuleId,
    pub id: ItemTreeId<Trait>,
}

Fields§

§container: ModuleId§id: ItemTreeId<Trait>

Trait Implementations§

source§

impl Intern for TraitLoc

§

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

§

type ID = TraitId

source§

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

source§

impl InternValue for TraitLoc

§

type Key = ItemLoc<Trait>

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 TraitLoc

§

type Container = ModuleId

§

type Id = Trait

source§

fn item_tree_id(&self) -> ItemTreeId<Self::Id>

source§

fn container(&self) -> Self::Container