Struct arret_runtime::intern::Interner [−][src]
pub struct Interner { /* fields omitted */ }Implementations
impl Interner[src]
impl Interner[src]pub fn new() -> Interner[src]
pub unsafe fn with_global_names(
raw_global_names: *const RawGlobalNames
) -> Interner[src]
raw_global_names: *const RawGlobalNames
) -> Interner
Creates a new Interner with a global names struct produced by codegen
Safety
raw_global_names must be a pointer to a valid RawGlobalNames
pub fn intern(&mut self, name: &str) -> InternedSym[src]
Interns a symbol with the given name
The InternedSym must be referenced by a boxed Sym before the next GC cycle.
pub fn intern_static(&mut self, name: &str) -> InternedSym[src]
Interns a static symbol with the given name
This should only be used where it’s not possible to GC root the InternedSym. This is
currently only used by the JIT where we can’t track InternedSym references in the
generated code.
pub fn unintern<'a>(&'a self, interned: &'a InternedSym) -> &'a str[src]
Trait Implementations
impl AsInterner for Interner[src]
impl AsInterner for Interner[src]