pub struct Interpreter { /* private fields */ }Implementations§
Source§impl Interpreter
impl Interpreter
pub fn new(instructions: Vec<Instruction>, constants: Vec<String>) -> Self
pub fn execute(&self) -> Result<Value, String>
pub fn execute_with_context( &self, _context: &mut Context, ) -> Result<Value, String>
pub fn get_instructions(&self) -> &[Instruction]
pub fn get_constants(&self) -> &[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 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