pub enum Raised {
Error(Value),
NoMatch(Value),
}Expand description
Value unwinding through the single error channel (see docs/elly-spec.md).
Error(v): Genuine failure (host abort or__Err.raise v). Propagates past__match.NoMatch(v): Pattern refutation frommatch_pattern. Only__matchcatches this, falling through to its fallback. Other boundaries treat it asError(v), surfacing the original errorv.
Kinds are distinguished by construction; user code can only raise Error,
preventing forged NoMatch signals.
Variants§
Error(Value)
A genuine error, propagated by __match.
NoMatch(Value)
A pattern refutation carrying the original error it decays to when uncaught.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Raised
impl !Send for Raised
impl !Sync for Raised
impl !UnwindSafe for Raised
impl Freeze for Raised
impl Unpin for Raised
impl UnsafeUnpin for Raised
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