Trait spirt::context::InternInCx

source ·
pub trait InternInCx<I> {
    // Required method
    fn intern_in_cx(self, cx: &Context) -> I;
}
Expand description

Dispatch helper, to allow implementing interning logic on the type passed to cx.intern(...).

Required Methods§

source

fn intern_in_cx(self, cx: &Context) -> I

Implementations on Foreign Types§

source§

impl InternInCx<InternedStr> for &str

source§

impl InternInCx<InternedStr> for String

Implementors§

source§

impl InternInCx<Type> for TypeKind

source§

impl<I: Interned> InternInCx<I> for I::Def
where I::Def: Sized + AsRef<I::Def>,