Struct enumeration::CastError
source · [−]pub struct CastError<T: Enumeration>(_);
Expand description
Error type when attempting to cast Variant to Enumeration
Trait Implementations
sourceimpl<T: Clone + Enumeration> Clone for CastError<T>
impl<T: Clone + Enumeration> Clone for CastError<T>
sourceimpl<T: Debug + Enumeration> Debug for CastError<T>
impl<T: Debug + Enumeration> Debug for CastError<T>
sourceimpl<T: Default + Enumeration> Default for CastError<T>
impl<T: Default + Enumeration> Default for CastError<T>
sourceimpl<T: Enumeration> Display for CastError<T>
impl<T: Enumeration> Display for CastError<T>
sourceimpl<T: Enumeration> Error for CastError<T>
impl<T: Enumeration> Error for CastError<T>
1.30.0 · 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
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. 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: Hash + Enumeration> Hash for CastError<T>
impl<T: Hash + Enumeration> Hash for CastError<T>
sourceimpl<T: Ord + Enumeration> Ord for CastError<T>
impl<T: Ord + Enumeration> Ord for CastError<T>
sourceimpl<T: PartialOrd + Enumeration> PartialOrd<CastError<T>> for CastError<T>
impl<T: PartialOrd + Enumeration> PartialOrd<CastError<T>> for CastError<T>
sourcefn partial_cmp(&self, other: &CastError<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &CastError<T>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl<T: Copy + Enumeration> Copy for CastError<T>
impl<T: Eq + Enumeration> Eq for CastError<T>
impl<T: Enumeration> StructuralEq for CastError<T>
impl<T: Enumeration> StructuralPartialEq for CastError<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for CastError<T> where
T: RefUnwindSafe,
impl<T> Send for CastError<T> where
T: Send,
impl<T> Sync for CastError<T> where
T: Sync,
impl<T> Unpin for CastError<T> where
T: Unpin,
impl<T> UnwindSafe for CastError<T> where
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