pub struct ExecEnv<H> { /* private fields */ }Expand description
An environment for executing AbleScript code.
Implementations§
Source§impl<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
pub fn new_with_vars<I>(host_interface: H, vars: I) -> Self
Create a new Scope with predefined variables
Trait Implementations§
Auto Trait Implementations§
impl<H> Freeze for ExecEnv<H>where
H: Freeze,
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§
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