Enum arithmetic_eval::fns::ErrorOutput
source · #[non_exhaustive]pub enum ErrorOutput {
Spanned(Error),
Message(String),
}
Expand description
Generic error output encompassing all error types supported by wrapped functions.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Spanned(Error)
Error together with the defined span(s).
Message(String)
Error message. The error span will be defined as the call span of the native function.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ErrorOutput
impl !RefUnwindSafe for ErrorOutput
impl Send for ErrorOutput
impl Sync for ErrorOutput
impl Unpin for ErrorOutput
impl !UnwindSafe for ErrorOutput
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