Struct TryFromPrimitiveError

pub struct TryFromPrimitiveError<Enum: TryFromPrimitive> { pub number: Enum::Primitive }

Fields

number: Enum::Primitive

Implementations

impl<Enum: TryFromPrimitive> TryFromPrimitiveError<Enum>

fn new(number: Enum::Primitive) -> Self

Trait Implementations

impl<Enum: Clone + TryFromPrimitive> Clone for TryFromPrimitiveError<Enum> where Enum::Primitive: Clone,

fn clone(&self) -> TryFromPrimitiveError<Enum>

impl<Enum: Copy + TryFromPrimitive> Copy for TryFromPrimitiveError<Enum> where Enum::Primitive: Copy,

impl<Enum: Eq + TryFromPrimitive> Eq for TryFromPrimitiveError<Enum> where Enum::Primitive: Eq,

impl<Enum: PartialEq + TryFromPrimitive> PartialEq for TryFromPrimitiveError<Enum> where Enum::Primitive: PartialEq,

fn eq(&self, other: &TryFromPrimitiveError<Enum>) -> bool

impl<Enum: PartialEq + TryFromPrimitive> StructuralPartialEq for TryFromPrimitiveError<Enum> where Enum::Primitive: PartialEq,

impl<Enum: TryFromPrimitive> Debug for TryFromPrimitiveError<Enum>

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result

impl<Enum: TryFromPrimitive> Display for TryFromPrimitiveError<Enum>

fn fmt(&self, stream: &mut Formatter<'_>) -> Result

impl<Enum: TryFromPrimitive> Error for TryFromPrimitiveError<Enum>

Auto Trait Implementations

impl<Enum> Freeze for TryFromPrimitiveError<Enum> where <Enum as TryFromPrimitive>::Primitive: Freeze,

impl<Enum> RefUnwindSafe for TryFromPrimitiveError<Enum> where <Enum as TryFromPrimitive>::Primitive: RefUnwindSafe,

impl<Enum> Send for TryFromPrimitiveError<Enum> where <Enum as TryFromPrimitive>::Primitive: Send,

impl<Enum> Sync for TryFromPrimitiveError<Enum> where <Enum as TryFromPrimitive>::Primitive: Sync,

impl<Enum> Unpin for TryFromPrimitiveError<Enum> where <Enum as TryFromPrimitive>::Primitive: Unpin,

impl<Enum> UnsafeUnpin for TryFromPrimitiveError<Enum> where <Enum as TryFromPrimitive>::Primitive: UnsafeUnpin,

impl<Enum> UnwindSafe for TryFromPrimitiveError<Enum> where <Enum as TryFromPrimitive>::Primitive: UnwindSafe,

Blanket Implementations

impl<T> Any for TryFromPrimitiveError<Enum> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for TryFromPrimitiveError<Enum> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for TryFromPrimitiveError<Enum> where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> CloneToUninit for TryFromPrimitiveError<Enum> where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for TryFromPrimitiveError<Enum>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for TryFromPrimitiveError<Enum> where T: Clone,

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

impl<T> ToString for TryFromPrimitiveError<Enum> where T: Display + ?Sized,

fn to_string(&self) -> String

impl<T, U> Into<U> for TryFromPrimitiveError<Enum> where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for TryFromPrimitiveError<Enum> where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for TryFromPrimitiveError<Enum> where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>