Struct dgen::interpreter::Interpreter
source · pub struct Interpreter { /* private fields */ }
Implementations
sourceimpl Interpreter
impl Interpreter
pub fn new() -> Interpreter
pub fn add_std_lib(&mut self)
pub fn add_module(&mut self, source: &Source) -> Result<(), Error>
pub fn eval(&mut self, program: &str) -> CreateFunctionResult
pub fn eval_any(&mut self, program: &str) -> Result<Option<AnyFunction>, Error>
pub fn function_iterator(&self) -> impl Iterator<Item = &FunctionPrototype>
Auto Trait Implementations
impl !RefUnwindSafe for Interpreter
impl !Send for Interpreter
impl !Sync for Interpreter
impl Unpin for Interpreter
impl !UnwindSafe for Interpreter
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more