pub struct Env {
pub out: Box<dyn Write>,
pub err: Box<dyn Write>,
pub halt: Arc<AtomicBool>,
}Expand description
The runtime env
Fields§
§out: Box<dyn Write>The output writer
err: Box<dyn Write>The error writer
halt: Arc<AtomicBool>The halt token - Set to true to exit after current instruction
Implementations§
Auto Trait Implementations§
impl Freeze for Env
impl !RefUnwindSafe for Env
impl !Send for Env
impl !Sync for Env
impl Unpin for Env
impl !UnwindSafe for Env
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