pub struct Stack { /* private fields */ }Implementations§
Source§impl Stack
impl Stack
pub fn make_null() -> SafeRc<dyn StackValue>
pub fn make_nan() -> SafeRc<dyn StackValue>
pub fn new(capacity: Option<usize>) -> Self
pub fn take_items(&mut self) -> Vec<SafeRc<dyn StackValue>>
pub fn set_items(&mut self, items: Vec<SafeRc<dyn StackValue>>)
pub fn depth(&self) -> usize
pub fn atoms(&self) -> &Atoms
pub fn atoms_mut(&mut self) -> &mut Atoms
pub fn check_underflow(&self, n: usize) -> Result<()>
pub fn fetch(&self, idx: usize) -> Result<SafeRc<dyn StackValue>>
pub fn swap(&mut self, lhs: usize, rhs: usize) -> Result<()>
pub fn push<T: StackValue + 'static>(&mut self, item: T) -> Result<()>
pub fn push_raw(&mut self, item: SafeRc<dyn StackValue>) -> Result<()>
pub fn extend_raw<T>(&mut self, items: T) -> Result<()>
pub fn push_null(&mut self) -> Result<()>
pub fn push_bool(&mut self, value: bool) -> Result<()>
pub fn push_opt<T: StackValue + 'static>( &mut self, value: Option<T>, ) -> Result<()>
pub fn push_opt_raw<T: StackValue + 'static>( &mut self, value: Option<SafeRc<T>>, ) -> Result<()>
pub fn push_int<T: Into<BigInt>>(&mut self, value: T) -> Result<()>
pub fn push_argcount(&mut self, args: u32) -> Result<()>
pub fn pop(&mut self) -> Result<SafeRc<dyn StackValue>>
pub fn pop_bool(&mut self) -> Result<bool>
pub fn pop_smallint_range(&mut self, min: u32, max: u32) -> Result<u32>
pub fn pop_smallint_signed_range(&mut self, min: i32, max: i32) -> Result<i32>
pub fn pop_long_range(&mut self, min: u64, max: u64) -> Result<u64>
pub fn pop_usize(&mut self) -> Result<usize>
pub fn pop_smallint_char(&mut self) -> Result<char>
pub fn pop_int(&mut self) -> Result<SafeRc<BigInt>>
pub fn pop_string(&mut self) -> Result<SafeRc<String>>
pub fn pop_string_owned(&mut self) -> Result<String>
pub fn pop_bytes(&mut self) -> Result<SafeRc<Vec<u8>>>
pub fn pop_bytes_owned(&mut self) -> Result<Vec<u8>>
pub fn pop_cell(&mut self) -> Result<SafeRc<Cell>>
pub fn pop_builder(&mut self) -> Result<SafeRc<CellBuilder>>
pub fn pop_builder_owned(&mut self) -> Result<CellBuilder>
pub fn pop_cell_slice(&mut self) -> Result<SafeRc<OwnedCellSlice>>
pub fn pop_cont(&mut self) -> Result<RcFiftCont>
pub fn pop_word_list(&mut self) -> Result<SafeRc<WordList>>
pub fn pop_tuple(&mut self) -> Result<SafeRc<StackTuple>>
pub fn pop_tuple_owned(&mut self) -> Result<StackTuple>
pub fn pop_atom(&mut self) -> Result<SafeRc<Atom>>
pub fn pop_hashmap(&mut self) -> Result<Option<SafeRc<HashMapTreeNode>>>
pub fn items(&self) -> &[SafeRc<dyn StackValue>]
pub fn clear(&mut self)
pub fn display_dump(&self) -> impl Display + '_
pub fn display_list(&self) -> impl Display + '_
Auto Trait Implementations§
impl Freeze for Stack
impl !RefUnwindSafe for Stack
impl !Send for Stack
impl !Sync for Stack
impl Unpin for Stack
impl !UnwindSafe for Stack
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