pub struct Sym(/* private fields */);Expand description
A name or symbol, interned in a realm (a Ctx). Two Syms of one realm
are equal exactly when their texts are; a Sym means nothing in another
realm, except a fixed one, which every realm shares.
Implementations§
Source§impl Sym
impl Sym
pub const MOD_BOOL: Sym
pub const MOD_ERR: Sym
pub const MOD_FUN: Sym
pub const MOD_INT: Sym
pub const MOD_LIST: Sym
pub const MOD_MAP: Sym
pub const MOD_MOD: Sym
pub const MOD_STR: Sym
pub const MOD_SYM: Sym
pub const MOD_UNIT: Sym
pub const ADD: Sym
pub const AND: Sym
pub const APPEND: Sym
pub const BAD_CODEPOINT: Sym
pub const BAD_PROJECTION: Sym
pub const BAD_SYMBOL: Sym
pub const CANNOT_PARSE_INT: Sym
pub const CAT: Sym
pub const CATCH: Sym
pub const DIV_BY_ZERO: Sym
pub const DIVREM: Sym
pub const EQ: Sym
pub const EXPORTS: Sym
pub const FALSE: Sym
pub const FOR: Sym
pub const FOREIGN_OBJECT: Sym
pub const FROM: Sym
pub const GE: Sym
pub const GET: Sym
pub const GETS: Sym
pub const GT: Sym
pub const LE: Sym
pub const LIST_SIZE_MISMATCH: Sym
pub const LT: Sym
pub const MAP_SIZE_MISMATCH: Sym
pub const MERGE: Sym
pub const MISSING_KEY: Sym
pub const MISSING_PROPERTY: Sym
pub const MODULE_ARITY: Sym
pub const MUL: Sym
pub const NAME: Sym
pub const NEGATIVE_EXPONENT: Sym
pub const NIL: Sym
pub const NO_MATCH: Sym
pub const NO_MODULE: Sym
pub const NOT: Sym
pub const NOT_A_BOOL: Sym
pub const NOT_A_LIST: Sym
pub const NOT_A_MAP: Sym
pub const NOT_A_MODULE: Sym
pub const NOT_A_STR: Sym
pub const NOT_A_SYM: Sym
pub const NOT_AN_INT: Sym
pub const NOT_AN_OBJECT: Sym
pub const NOT_APPLICABLE: Sym
pub const NOT_INT: Sym
pub const NOT_STRING: Sym
pub const NOT_UNIT: Sym
pub const OR: Sym
pub const PACK: Sym
pub const PARSE: Sym
pub const POW: Sym
pub const PROJECTION_OUT_OF_RANGE: Sym
pub const RAISE: Sym
pub const SIZE: Sym
pub const SPLIT: Sym
pub const STR: Sym
pub const SUB: Sym
pub const TRUE: Sym
pub const UNPACK: Sym
pub const WITH: Sym
pub const WITHOUT: Sym
Trait Implementations§
impl Copy for Sym
impl Eq for Sym
Source§impl Ord for Sym
impl Ord for Sym
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Sym
impl PartialOrd for Sym
impl StructuralPartialEq for Sym
Auto Trait Implementations§
impl Freeze for Sym
impl RefUnwindSafe for Sym
impl Send for Sym
impl Sync for Sym
impl Unpin for Sym
impl UnsafeUnpin for Sym
impl UnwindSafe for Sym
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more