Enum calc::types::BasicError
source · [−]pub enum BasicError<T: Debug, E: 'static + Error> {
Arithmetic(ArithmeticError),
NotImplemented(&'static str, PhantomData<T>),
Parse(E),
HistoryOOB(HistoryIndexKind, usize, usize),
}
Variants
Arithmetic(ArithmeticError)
NotImplemented(&'static str, PhantomData<T>)
Parse(E)
HistoryOOB(HistoryIndexKind, usize, usize)
Trait Implementations
sourceimpl<T, E> CalcableError for BasicError<T, E> where
T: Debug,
E: 'static + Error,
impl<T, E> CalcableError for BasicError<T, E> where
T: Debug,
E: 'static + Error,
fn unimplemented(operation: &'static str) -> Self
fn history_out_of_bounds(
kind: HistoryIndexKind,
requested_index: usize,
history_len: usize
) -> Self
sourceimpl<T: Debug, E: 'static + Error> Error for BasicError<T, E> where
E: Error + 'static,
Self: Debug + Display,
impl<T: Debug, E: 'static + Error> Error for BasicError<T, E> where
E: Error + 'static,
Self: Debug + Display,
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl<T: Debug, E: 'static + Error> From<ArithmeticError> for BasicError<T, E>
impl<T: Debug, E: 'static + Error> From<ArithmeticError> for BasicError<T, E>
sourcefn from(source: ArithmeticError) -> Self
fn from(source: ArithmeticError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl<T, E> RefUnwindSafe for BasicError<T, E> where
E: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, E> Send for BasicError<T, E> where
E: Send,
T: Send,
impl<T, E> Sync for BasicError<T, E> where
E: Sync,
T: Sync,
impl<T, E> Unpin for BasicError<T, E> where
E: Unpin,
T: Unpin,
impl<T, E> UnwindSafe for BasicError<T, E> where
E: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more