pub enum TrampolineState {
Eval {
expr: ExprRef,
env: EnvRef,
},
Return {
val: ArenaIndex,
},
}Expand description
Trampoline state - what we’re currently doing
Variants§
Eval
Evaluate expression in environment
Return
Return a value to the continuation
Fields
§
val: ArenaIndexTrait Implementations§
Source§impl Clone for TrampolineState
impl Clone for TrampolineState
Source§fn clone(&self) -> TrampolineState
fn clone(&self) -> TrampolineState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TrampolineState
impl Debug for TrampolineState
Source§impl GcRoots for TrampolineState
impl GcRoots for TrampolineState
Source§fn trace_roots(&self, tracer: &mut dyn FnMut(ArenaIndex))
fn trace_roots(&self, tracer: &mut dyn FnMut(ArenaIndex))
Call
tracer once for every ArenaIndex that is a live GC root.impl Copy for TrampolineState
Auto Trait Implementations§
impl Freeze for TrampolineState
impl RefUnwindSafe for TrampolineState
impl Send for TrampolineState
impl Sync for TrampolineState
impl Unpin for TrampolineState
impl UnwindSafe for TrampolineState
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