pub enum MathLibError {
ParserError(ParserError),
EvalError(EvalError),
QuickEvalError(QuickEvalError),
Other(String),
}
Expand description
provides an enum with the corresponding From implementations in order to use as a convenient return error type for this library.
Variants§
Implementations§
Source§impl MathLibError
impl MathLibError
Sourcepub fn get_reason(&self) -> String
pub fn get_reason(&self) -> String
returns the reason behind the MathLibError.
Trait Implementations§
Source§impl Clone for MathLibError
impl Clone for MathLibError
Source§fn clone(&self) -> MathLibError
fn clone(&self) -> MathLibError
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MathLibError
impl Debug for MathLibError
Source§impl From<EvalError> for MathLibError
impl From<EvalError> for MathLibError
Source§impl From<ParserError> for MathLibError
impl From<ParserError> for MathLibError
Source§fn from(value: ParserError) -> Self
fn from(value: ParserError) -> Self
Converts to this type from the input type.
Source§impl From<QuickEvalError> for MathLibError
impl From<QuickEvalError> for MathLibError
Source§fn from(value: QuickEvalError) -> Self
fn from(value: QuickEvalError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MathLibError
impl PartialEq for MathLibError
impl StructuralPartialEq for MathLibError
Auto Trait Implementations§
impl Freeze for MathLibError
impl RefUnwindSafe for MathLibError
impl Send for MathLibError
impl Sync for MathLibError
impl Unpin for MathLibError
impl UnwindSafe for MathLibError
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