pub struct Var { /* private fields */ }
Expand description
§Variable memory
Implementations§
Source§impl Var
impl Var
pub fn new() -> Var
pub fn clear(&mut self)
pub fn defint(&mut self, from: Val, to: Val) -> Result<(), Error>
pub fn defsng(&mut self, from: Val, to: Val) -> Result<(), Error>
pub fn defdbl(&mut self, from: Val, to: Val) -> Result<(), Error>
pub fn defstr(&mut self, from: Val, to: Val) -> Result<(), Error>
pub fn fetch(&self, var_name: &Rc<str>) -> Val
pub fn store_array( &mut self, var_name: &Rc<str>, arr: Stack<Val>, value: Val, ) -> Result<(), Error>
pub fn fetch_array( &mut self, var_name: &Rc<str>, arr: Stack<Val>, ) -> Result<Val, Error>
pub fn erase_array(&mut self, var_name: &Rc<str>) -> Result<(), Error>
pub fn dimension_array( &mut self, var_name: &Rc<str>, arr: Stack<Val>, ) -> Result<(), Error>
pub fn store(&mut self, var_name: &Rc<str>, value: Val) -> Result<(), Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Var
impl RefUnwindSafe for Var
impl !Send for Var
impl !Sync for Var
impl Unpin for Var
impl UnwindSafe for Var
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