Struct arret_runtime::intern::Interner[][src]

pub struct Interner { /* fields omitted */ }

Implementations

impl Interner[src]

pub fn new() -> Interner[src]

pub unsafe fn with_global_names(
    raw_global_names: *const RawGlobalNames
) -> Interner
[src]

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 Default for Interner[src]

Auto Trait Implementations

impl !RefUnwindSafe for Interner

impl !Send for Interner

impl !Sync for Interner

impl Unpin for Interner

impl UnwindSafe for Interner

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.