pub enum Atom {
Unnamed(i32),
Named(Rc<str>),
}Variants§
Trait Implementations§
Source§impl Ord for Atom
impl Ord for Atom
Source§impl PartialOrd for Atom
impl PartialOrd for Atom
Source§impl StackValue for Atom
impl StackValue for Atom
fn ty(&self) -> StackValueType
fn is_equal(&self, other: &dyn StackValue) -> bool
fn fmt_dump(&self, f: &mut Formatter<'_>) -> Result
fn as_atom(&self) -> Result<&Atom>
fn rc_into_atom(self: Rc<Self>) -> Result<Rc<Atom>>
fn as_null(&self) -> Result<&()>
fn as_nan(&self) -> Result<&NaN>
fn as_int(&self) -> Result<&BigInt>
fn as_cell(&self) -> Result<&Cell>
fn as_builder(&self) -> Result<&CellBuilder>
fn as_slice(&self) -> Result<CellSlice<'_>>
fn as_string(&self) -> Result<&str>
fn as_bytes(&self) -> Result<&[u8]>
fn as_tuple(&self) -> Result<&StackTuple>
fn as_cont(&self) -> Result<&dyn FiftCont>
fn as_word_list(&self) -> Result<&WordList>
fn as_box(&self) -> Result<&SharedBox>
fn as_hashmap(&self) -> Result<&HashMapTreeNode>
fn as_vm_cont(&self) -> Result<&RcCont>
fn rc_into_null(self: Rc<Self>) -> Result<Rc<()>>
fn rc_into_nan(self: Rc<Self>) -> Result<Rc<NaN>>
fn rc_into_int(self: Rc<Self>) -> Result<Rc<BigInt>>
fn rc_into_cell(self: Rc<Self>) -> Result<Rc<Cell>>
fn rc_into_builder(self: Rc<Self>) -> Result<Rc<CellBuilder>>
fn rc_into_cell_slice(self: Rc<Self>) -> Result<Rc<OwnedCellSlice>>
fn rc_into_string(self: Rc<Self>) -> Result<Rc<String>>
fn rc_into_bytes(self: Rc<Self>) -> Result<Rc<Vec<u8>>>
fn rc_into_tuple(self: Rc<Self>) -> Result<Rc<StackTuple>>
fn rc_into_cont(self: Rc<Self>) -> Result<Rc<dyn FiftCont>>
fn rc_into_word_list(self: Rc<Self>) -> Result<Rc<WordList>>
fn rc_into_hashmap(self: Rc<Self>) -> Result<Rc<HashMapTreeNode>>
fn rc_into_vm_cont(self: Rc<Self>) -> Result<Rc<RcCont>>
impl Eq for Atom
impl StructuralPartialEq for Atom
Auto Trait Implementations§
impl Freeze for Atom
impl RefUnwindSafe for Atom
impl !Send for Atom
impl !Sync for Atom
impl Unpin for Atom
impl UnsafeUnpin for Atom
impl UnwindSafe for Atom
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,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compares
self to key and returns true if they are equal.