pub struct InterpreterContext { /* private fields */ }
Implementations§
Source§impl InterpreterContext
impl InterpreterContext
pub fn new() -> Self
pub fn set_variable(&mut self, name: String, value: Value)
pub fn get_variable(&self, name: &str) -> Option<&Value>
pub fn get_function(&self, name: &str) -> Option<&BuiltinFunction>
Trait Implementations§
Source§impl Clone for InterpreterContext
impl Clone for InterpreterContext
Source§fn clone(&self) -> InterpreterContext
fn clone(&self) -> InterpreterContext
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for InterpreterContext
impl Debug for InterpreterContext
Auto Trait Implementations§
impl Freeze for InterpreterContext
impl RefUnwindSafe for InterpreterContext
impl Send for InterpreterContext
impl Sync for InterpreterContext
impl Unpin for InterpreterContext
impl UnwindSafe for InterpreterContext
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