pub struct VariableStack { /* private fields */ }Implementations§
Source§impl VariableStack
impl VariableStack
pub fn new() -> Self
pub fn is_valid(&self) -> bool
pub fn empty(&self) -> bool
pub fn len(&self) -> usize
pub fn push(&mut self, variable: Variable)
pub fn top(&self) -> Option<&Variable>
pub fn pop(&mut self) -> Option<Variable>
pub fn pop_as_f32(&mut self) -> f32
pub fn pop_as_i32(&mut self) -> i32
pub fn pop_as_string(&mut self) -> String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VariableStack
impl RefUnwindSafe for VariableStack
impl Send for VariableStack
impl Sync for VariableStack
impl Unpin for VariableStack
impl UnwindSafe for VariableStack
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