[][src]Struct int_enum::IntEnumError

pub struct IntEnumError<T: IntEnum> { /* fields omitted */ }

An error when attempting to convert an integer into an enum.

Methods

impl<T: IntEnum> IntEnumError<T>[src]

pub fn value(&self) -> T::Int[src]

Returns the value that could not be converted.

Trait Implementations

impl<T: Clone + IntEnum> Clone for IntEnumError<T> where
    T::Int: Clone
[src]

impl<T: Copy + IntEnum> Copy for IntEnumError<T> where
    T::Int: Copy
[src]

impl<T: IntEnum> Debug for IntEnumError<T>[src]

impl<T: IntEnum> Display for IntEnumError<T>[src]

impl<T: Eq + IntEnum> Eq for IntEnumError<T> where
    T::Int: Eq
[src]

impl<T: IntEnum> Error for IntEnumError<T>[src]

impl<T: PartialEq + IntEnum> PartialEq<IntEnumError<T>> for IntEnumError<T> where
    T::Int: PartialEq
[src]

impl<T: IntEnum> StructuralEq for IntEnumError<T>[src]

impl<T: IntEnum> StructuralPartialEq for IntEnumError<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for IntEnumError<T> where
    T: RefUnwindSafe,
    <T as IntEnum>::Int: RefUnwindSafe

impl<T> Send for IntEnumError<T> where
    T: Send,
    <T as IntEnum>::Int: Send

impl<T> Sync for IntEnumError<T> where
    T: Sync,
    <T as IntEnum>::Int: Sync

impl<T> Unpin for IntEnumError<T> where
    T: Unpin,
    <T as IntEnum>::Int: Unpin

impl<T> UnwindSafe for IntEnumError<T> where
    T: UnwindSafe,
    <T as IntEnum>::Int: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.