pub struct Interpreter {
pub env: Env,
pub limits: Limits,
pub types: TypeRegistry,
/* private fields */
}Fields§
§env: Env§limits: Limits§types: TypeRegistryImplementations§
Source§impl Interpreter
impl Interpreter
pub fn new() -> Self
pub fn with_output(output: Arc<dyn OutputHandler>) -> Self
pub fn eval_program(&mut self, program: &Program) -> Result<Value, IonError>
Sourcepub fn with_env(env: Env) -> Self
pub fn with_env(env: Env) -> Self
Create an interpreter with a pre-existing environment (for VM hybrid mode).
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 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