pub struct Stack { /* private fields */ }
Implementations§
Source§impl Stack
impl Stack
pub fn new() -> Self
pub fn get(&self, name: &str) -> Option<(Rc<Value>, Position)>
pub fn remove_symbol(&mut self, name: &str) -> Option<(Rc<Value>, Position)>
pub fn is_bound(&self, name: &str) -> bool
pub fn add(&mut self, name: String, val: Rc<Value>, pos: Position)
pub fn symbol_list(&self) -> Vec<&String>
pub fn snapshot(&self) -> Self
Trait Implementations§
impl StructuralPartialEq for Stack
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