Type Alias ra_ap_hir_def::EnumLoc

source ·
pub type EnumLoc = ItemLoc<Enum>;

Aliased Type§

struct EnumLoc {
    pub container: ModuleId,
    pub id: ItemTreeId<Enum>,
}

Fields§

§container: ModuleId§id: ItemTreeId<Enum>

Trait Implementations§

source§

impl Intern for EnumLoc

§

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

§

type ID = EnumId

source§

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

source§

impl InternValue for EnumLoc

§

type Key = ItemLoc<Enum>

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 EnumLoc

§

type Container = ModuleId

§

type Id = Enum

source§

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

source§

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