pub struct Machine { /* private fields */ }Implementations§
Source§impl Machine
impl Machine
pub fn new(env: Env, exp: RcExp) -> Machine
Sourcepub fn applying(f: Val, arg: Val) -> Machine
pub fn applying(f: Val, arg: Val) -> Machine
A machine poised to apply f to arg. How a spawned task starts:
its thunk arrives as a value, never as syntax, so both ride in as
Exp::Proc, the carrier cross-stage persistence uses.
pub fn step<M: Mail>(&mut self, h: &mut Store<M>) -> Result<Step, Fault>
pub fn run<M: Mail>(self, h: &mut Store<M>) -> Result<Val, Fault>
Auto Trait Implementations§
impl Freeze for Machine
impl !RefUnwindSafe for Machine
impl Send for Machine
impl Sync for Machine
impl Unpin for Machine
impl !UnwindSafe for Machine
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