Expand description
Deferred execution context holds its state or inner deferred execution (if there is deferred subroutine needed to evaluate).
Variants§
State(S)
Context holds single state.
Deferred(Box<Deferred<S>>)
Context holds deferred subroutine needed to evaluate.
Implementations§
source§impl<S> Context<S>
impl<S> Context<S>
sourcepub fn is_deferred(&self) -> bool
pub fn is_deferred(&self) -> bool
Tells if context holds a deferred subroutine to evaluate.
sourcepub fn get_state(&self) -> Option<&S>
pub fn get_state(&self) -> Option<&S>
Gets reference to current state if there is one hold by context or its deferred subroutine.
sourcepub fn get_deferred(&self) -> Option<&Deferred<S>>
pub fn get_deferred(&self) -> Option<&Deferred<S>>
Gets deferred subroutine if context has one.