Struct arret_runtime::boxed::Sym[][src]

#[repr(C, align(16))]
pub struct Sym { /* fields omitted */ }

Interned symbol

Symbols are immutable strings typically used as keywords or identifiers.

Implementations

impl Sym[src]

pub fn new(heap: &mut impl AsHeap, value: &str) -> Gc<Sym>[src]

Constructs a new symbol with a specified name

pub fn from_interned_sym(
    heap: &mut impl AsHeap,
    interned: InternedSym
) -> Gc<Sym>
[src]

Constructs a new symbol with an interned symbol

pub fn size() -> BoxSize[src]

Returns the box size for symbols

pub fn name<'a>(&'a self, interner: &'a impl AsInterner) -> &'a str[src]

Returns the name of the symbol

interner is required to unintern the name. It must be the same interner used to construct the symbol.

pub fn interned(&self) -> InternedSym[src]

Returns the interned symbol value

Trait Implementations

impl Boxed for Sym[src]

impl ConstTagged for Sym[src]

impl Debug for Sym[src]

impl DistinctTagged for Sym[src]

impl Hash for Sym[src]

impl PartialEq<Sym> for Sym[src]

impl UniqueTagged for Sym[src]

Auto Trait Implementations

impl RefUnwindSafe for Sym

impl Send for Sym

impl Sync for Sym

impl Unpin for Sym

impl UnwindSafe for Sym

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> EncodeBoxedAbiType for T where
    T: UniqueTagged
[src]

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

impl<T> HashInHeap for T where
    T: Hash
[src]

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

impl<T> PartialEqInHeap for T where
    T: PartialEq<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.