Struct int_enum::IntEnumError
source · [−]#[repr(transparent)]pub struct IntEnumError<T: IntEnum> { /* private fields */ }
Expand description
Error when attempting to convert an integer into an enum.
Implementations
Trait Implementations
sourceimpl<T: Clone + IntEnum> Clone for IntEnumError<T>where
T::Int: Clone,
impl<T: Clone + IntEnum> Clone for IntEnumError<T>where
T::Int: Clone,
sourcefn clone(&self) -> IntEnumError<T>
fn clone(&self) -> IntEnumError<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<T: IntEnum> Debug for IntEnumError<T>
impl<T: IntEnum> Debug for IntEnumError<T>
sourceimpl<T: IntEnum> Display for IntEnumError<T>
impl<T: IntEnum> Display for IntEnumError<T>
sourceimpl<T: IntEnum> Error for IntEnumError<T>
impl<T: IntEnum> Error for IntEnumError<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
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: PartialEq + IntEnum> PartialEq<IntEnumError<T>> for IntEnumError<T>where
T::Int: PartialEq,
impl<T: PartialEq + IntEnum> PartialEq<IntEnumError<T>> for IntEnumError<T>where
T::Int: PartialEq,
sourcefn eq(&self, other: &IntEnumError<T>) -> bool
fn eq(&self, other: &IntEnumError<T>) -> bool
impl<T: Copy + IntEnum> Copy for IntEnumError<T>where
T::Int: Copy,
impl<T: Eq + IntEnum> Eq for IntEnumError<T>where
T::Int: Eq,
impl<T: IntEnum> StructuralEq for IntEnumError<T>
impl<T: IntEnum> StructuralPartialEq for IntEnumError<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for IntEnumError<T>where
<T as IntEnum>::Int: RefUnwindSafe,
impl<T> Send for IntEnumError<T>where
<T as IntEnum>::Int: Send,
impl<T> Sync for IntEnumError<T>where
<T as IntEnum>::Int: Sync,
impl<T> Unpin for IntEnumError<T>where
<T as IntEnum>::Int: Unpin,
impl<T> UnwindSafe for IntEnumError<T>where
<T as IntEnum>::Int: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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