Enum ezno_checker::events::ApplicationResult
source · pub enum ApplicationResult {
Return {
returned: TypeId,
position: SpanWithSource,
},
Throw {
thrown: TypeId,
position: SpanWithSource,
},
Yield {},
Break {
carry: u8,
position: SpanWithSource,
},
Continue {
carry: u8,
position: SpanWithSource,
},
Or {
on: TypeId,
truthy_result: Box<ApplicationResult>,
otherwise_result: Box<ApplicationResult>,
},
}
Expand description
This doesn’t cover unconditional thrown from internal functions
Similar to FinalEvent
but includes different information + or
break
and continue
don’t apply for function returns (but do for iteration and conditionals)
Variants§
Return
Throw
From a throw ***
statement (or expression).
Yield
TODO state
Break
Continue
TODO explain why this can’t be done with just (or at least label makes it more difficult)
Or
One of these is Some
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ApplicationResult
impl RefUnwindSafe for ApplicationResult
impl Send for ApplicationResult
impl Sync for ApplicationResult
impl Unpin for ApplicationResult
impl UnwindSafe for ApplicationResult
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more