Trait StackValue
Source pub trait StackValue: SafeDelete {
Show 33 methods
// Required methods
fn ty(&self) -> StackValueType;
fn is_equal(&self, other: &dyn StackValue) -> bool;
fn fmt_dump(&self, f: &mut Formatter<'_>) -> Result;
// Provided methods
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_atom(&self) -> Result<&Atom> { ... }
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_shared_box(self: Rc<Self>) -> Result<Rc<SharedBox>> { ... }
fn rc_into_atom(self: Rc<Self>) -> Result<Rc<Atom>> { ... }
fn rc_into_hashmap(self: Rc<Self>) -> Result<Rc<HashMapTreeNode>> { ... }
fn rc_into_vm_cont(self: Rc<Self>) -> Result<Rc<RcCont>> { ... }
}