pub trait Interned: Sized + 'static {
    type Def: ?Sized + Eq + Hash;

    // Required methods
    fn from_u32(i: u32) -> Self;
    fn to_u32(self) -> u32;
    fn cx_interner(cx: &Context) -> &Interner<Self>;

    // Provided method
    fn preintern(_interner: &Interner<Self>) { ... }
}

Required Associated Types§

source

type Def: ?Sized + Eq + Hash

Required Methods§

source

fn from_u32(i: u32) -> Self

source

fn to_u32(self) -> u32

source

fn cx_interner(cx: &Context) -> &Interner<Self>

Provided Methods§

source

fn preintern(_interner: &Interner<Self>)

Object Safety§

This trait is not object safe.

Implementors§