pub struct Interpreter { /* private fields */ }
Implementations§
Source§impl Interpreter
impl Interpreter
pub fn eval_module( &mut self, module: &ResolvedModule, ) -> Result<Value, ExecuteError>
Source§impl Interpreter
impl Interpreter
pub fn new() -> Interpreter
pub fn register_external_function( &mut self, name: String, function_id: u32, handler: impl FnMut(&[Value]) -> Result<Value, ExecuteError> + 'static, ) -> Result<(), String>
Trait Implementations§
Source§impl Default for Interpreter
impl Default for Interpreter
Source§fn default() -> Interpreter
fn default() -> Interpreter
Returns the “default value” for a type. Read more
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