pub struct ControlAbort {
pub prompt: Ref,
pub value: Ref,
pub result_shape: Ref,
}Expand description
Record describing an abort that unwinds to a prompt with a value.
Fields§
§prompt: RefReference identifying the prompt boundary to unwind to.
value: RefValue delivered as the prompt result.
result_shape: RefShape the prompt result must satisfy.
Implementations§
Trait Implementations§
Source§impl Clone for ControlAbort
impl Clone for ControlAbort
Source§fn clone(&self) -> ControlAbort
fn clone(&self) -> ControlAbort
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ControlAbort
impl Debug for ControlAbort
impl Eq for ControlAbort
Source§impl PartialEq for ControlAbort
impl PartialEq for ControlAbort
Source§fn eq(&self, other: &ControlAbort) -> bool
fn eq(&self, other: &ControlAbort) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ControlAbort
Auto Trait Implementations§
impl Freeze for ControlAbort
impl RefUnwindSafe for ControlAbort
impl Send for ControlAbort
impl Sync for ControlAbort
impl Unpin for ControlAbort
impl UnsafeUnpin for ControlAbort
impl UnwindSafe for ControlAbort
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