pub struct ClLiteControlScope { /* private fields */ }Expand description
Condition-and-restart scope for CL-lite handler-case / restart-case.
Holds the active handler and restart stacks; all signaling delegates to the control organ.
Implementations§
Source§impl ClLiteControlScope
impl ClLiteControlScope
Sourcepub fn push_handler(&mut self, handler: ConditionHandler)
pub fn push_handler(&mut self, handler: ConditionHandler)
Pushes a condition handler onto the handler stack.
Sourcepub fn pop_handler(&mut self) -> Option<ConditionHandler>
pub fn pop_handler(&mut self) -> Option<ConditionHandler>
Pops the most recently pushed condition handler.
Sourcepub fn handler_case(
&self,
cx: &mut Cx,
kind: Symbol,
payload: Ref,
) -> Result<ContinuationValue>
pub fn handler_case( &self, cx: &mut Cx, kind: Symbol, payload: Ref, ) -> Result<ContinuationValue>
Signals a condition to the nearest matching handler.
Sourcepub fn push_restart(&mut self, name: Symbol, continuation: ContinuationValue)
pub fn push_restart(&mut self, name: Symbol, continuation: ContinuationValue)
Pushes a named restart with its resumption continuation.
Sourcepub fn pop_restart(&mut self) -> Option<Restart>
pub fn pop_restart(&mut self) -> Option<Restart>
Pops the most recently pushed restart.
Sourcepub fn restart_case(
&self,
cx: &mut Cx,
name: &Symbol,
value: Ref,
) -> Result<ControlResultValue>
pub fn restart_case( &self, cx: &mut Cx, name: &Symbol, value: Ref, ) -> Result<ControlResultValue>
Invokes a named restart with a resumption value.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ClLiteControlScope
impl RefUnwindSafe for ClLiteControlScope
impl Send for ClLiteControlScope
impl Sync for ClLiteControlScope
impl Unpin for ClLiteControlScope
impl UnsafeUnpin for ClLiteControlScope
impl UnwindSafe for ClLiteControlScope
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