pub enum ExecResult {
True,
False,
Error(NightjarLanguageError),
}Expand description
Three-valued execution result.
Variants§
True
The assertion holds.
False
The assertion does not hold.
Error(NightjarLanguageError)
The assertion could not be evaluated; the wrapped
NightjarLanguageError carries the diagnostic.
Implementations§
Source§impl ExecResult
impl ExecResult
Sourcepub fn is_true(&self) -> bool
pub fn is_true(&self) -> bool
Return true when the result is ExecResult::True.
Sourcepub fn is_false(&self) -> bool
pub fn is_false(&self) -> bool
Return true when the result is ExecResult::False.
Sourcepub fn is_error(&self) -> bool
pub fn is_error(&self) -> bool
Return true when the result is ExecResult::Error.
Trait Implementations§
Source§impl Clone for ExecResult
impl Clone for ExecResult
Source§fn clone(&self) -> ExecResult
fn clone(&self) -> ExecResult
Returns a duplicate of the value. Read more
1.0.0 · 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 ExecResult
impl Debug for ExecResult
Source§impl From<Result<bool, NightjarLanguageError>> for ExecResult
impl From<Result<bool, NightjarLanguageError>> for ExecResult
Source§impl PartialEq for ExecResult
impl PartialEq for ExecResult
impl StructuralPartialEq for ExecResult
Auto Trait Implementations§
impl Freeze for ExecResult
impl RefUnwindSafe for ExecResult
impl Send for ExecResult
impl Sync for ExecResult
impl Unpin for ExecResult
impl UnsafeUnpin for ExecResult
impl UnwindSafe for ExecResult
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