pub struct Interpreter { /* private fields */ }Implementations§
Source§impl Interpreter
impl Interpreter
pub fn new(env: Environment) -> Self
pub fn eval_stmt(&mut self, stmt: &Stmt) -> Result<Option<Value>, String>
pub fn eval_expr(&mut self, expr: &Expr) -> Result<Value, String>
pub fn run(&mut self, stmts: &[Stmt]) -> Result<(), String>
pub fn run_module(&mut self, path: &str) -> Result<Environment, String>
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