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() -> Self
pub fn register_external_function( &mut self, name: String, function_id: ExternalFunctionId, handler: impl FnMut(&[Value]) -> Result<Value, ExecuteError> + 'static, ) -> Result<(), String>
Trait Implementations§
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