pub struct HelperResult {
pub tag: CompletionTag,
pub value: Value,
}Expand description
The outcome of a completion helper: the ABI tag plus the completion value its tag interprets (return value, thrown/yielded handle, or trap id).
Fields§
§tag: CompletionTagThe completion class.
value: ValueThe completion value; meaning fixed by tag.
Implementations§
Source§impl HelperResult
impl HelperResult
Sourcepub const fn normal(value: Value) -> HelperResult
pub const fn normal(value: Value) -> HelperResult
A Normal completion carrying value.
Sourcepub const fn throw(value: Value) -> HelperResult
pub const fn throw(value: Value) -> HelperResult
A Throw completion carrying the rooted error handle value.
Trait Implementations§
Source§impl Clone for HelperResult
impl Clone for HelperResult
Source§fn clone(&self) -> HelperResult
fn clone(&self) -> HelperResult
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 moreimpl Copy for HelperResult
Source§impl Debug for HelperResult
impl Debug for HelperResult
impl Eq for HelperResult
Source§impl PartialEq for HelperResult
impl PartialEq for HelperResult
impl StructuralPartialEq for HelperResult
Auto Trait Implementations§
impl Freeze for HelperResult
impl RefUnwindSafe for HelperResult
impl Send for HelperResult
impl Sync for HelperResult
impl Unpin for HelperResult
impl UnsafeUnpin for HelperResult
impl UnwindSafe for HelperResult
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