pub struct Interpreter { /* private fields */ }Implementations§
Source§impl Interpreter
impl Interpreter
pub fn new() -> Self
pub fn env(&self) -> &Environment
pub fn env_mut(&mut self) -> &mut Environment
pub fn run_source(&mut self, source: &str) -> Result<Value, RuntimeError>
pub fn exec_stmt(&mut self, stmt: &Stmt) -> Result<Value, RuntimeError>
pub fn eval_expr(&mut self, expr: &Expr) -> Result<Value, RuntimeError>
Auto Trait Implementations§
impl Freeze for Interpreter
impl RefUnwindSafe for Interpreter
impl Send for Interpreter
impl Sync for Interpreter
impl Unpin for Interpreter
impl UnsafeUnpin for Interpreter
impl UnwindSafe for Interpreter
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