Trait hir_expand::Intern

source ·
pub trait Intern {
    type Database<'db>: ?Sized;
    type ID;

    // Required method
    fn intern(self, db: &Self::Database<'_>) -> Self::ID;
}

Required Associated Types§

source

type Database<'db>: ?Sized

source

type ID

Required Methods§

source

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

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Intern for SyntaxContextData

source§

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

source§

type ID = SyntaxContextId

source§

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

Implementors§