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]
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]
heap: &mut impl AsHeap,
interned: InternedSym
) -> Gc<Sym>
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
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> EncodeBoxedAbiType for T where
T: UniqueTagged,
[src]
impl<T> EncodeBoxedAbiType for T where
T: UniqueTagged,
[src]pub const BOXED_ABI_TYPE: BoxedAbiType
[src]
impl<T> HashInHeap for T where
T: Hash,
[src]
impl<T> HashInHeap for T where
T: Hash,
[src]impl<T> PartialEqInHeap for T where
T: PartialEq<T>,
[src]
impl<T> PartialEqInHeap for T where
T: PartialEq<T>,
[src]