Type Alias hir_def::StaticLoc

source ·
pub type StaticLoc = AssocItemLoc<Static>;

Aliased Type§

struct StaticLoc {
    pub container: ItemContainerId,
    pub id: ItemTreeId<Static>,
}

Fields§

§container: ItemContainerId§id: ItemTreeId<Static>

Trait Implementations§

source§

impl Intern for StaticLoc

§

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

§

type ID = StaticId

source§

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

source§

impl InternValue for StaticLoc

§

type Key = AssocItemLoc<Static>

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 StaticLoc