Struct ablescript::interpret::ExecEnv
source · [−]pub struct ExecEnv<H> { /* private fields */ }Expand description
An environment for executing AbleScript code.
Implementations
sourceimpl<H: HostInterface> ExecEnv<H>
impl<H: HostInterface> ExecEnv<H>
sourcepub fn with_host_interface(host_interface: H) -> Self
pub fn with_host_interface(host_interface: H) -> Self
Create a new Scope with no predefined variable definitions or other information.
sourcepub fn new_with_vars<I>(host_interface: H, vars: I) -> Self where
I: IntoIterator<Item = (String, Variable)>,
pub fn new_with_vars<I>(host_interface: H, vars: I) -> Self where
I: IntoIterator<Item = (String, Variable)>,
Create a new Scope with predefined variables
Trait Implementations
Auto Trait Implementations
impl<H> !RefUnwindSafe for ExecEnv<H>
impl<H> !Send for ExecEnv<H>
impl<H> !Sync for ExecEnv<H>
impl<H> Unpin for ExecEnv<H> where
H: Unpin,
impl<H> !UnwindSafe for ExecEnv<H>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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