Struct TryFromReprError

pub struct TryFromReprError<T> { pub input: T }

Error returned by the derived TryFrom implementation on enums to convert from their repr.

Fields

input: T

Original input value which failed to convert via the derived TryFrom implementation.

Trait Implementations

impl<T: Clone> Clone for TryFromReprError<T>

fn clone(&self) -> TryFromReprError<T>

impl<T: Copy> Copy for TryFromReprError<T>

impl<T: Debug> Debug for TryFromReprError<T>

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

impl<T: Debug> Display for TryFromReprError<T>

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

impl<T: Debug> Error for TryFromReprError<T>

Auto Trait Implementations

impl<T> Freeze for TryFromReprError<T> where T: Freeze,

impl<T> RefUnwindSafe for TryFromReprError<T> where T: RefUnwindSafe,

impl<T> Send for TryFromReprError<T> where T: Send,

impl<T> Sync for TryFromReprError<T> where T: Sync,

impl<T> Unpin for TryFromReprError<T> where T: Unpin,

impl<T> UnsafeUnpin for TryFromReprError<T> where T: UnsafeUnpin,

impl<T> UnwindSafe for TryFromReprError<T> where T: UnwindSafe,

Blanket Implementations

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

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for TryFromReprError<T> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for TryFromReprError<T> where T: ?Sized,

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

impl<T> CloneToUninit for TryFromReprError<T> where T: Clone,

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

impl<T> From<T> for TryFromReprError<T>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for TryFromReprError<T> where T: Clone,

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

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

fn to_string(&self) -> String

impl<T, U> Into<U> for TryFromReprError<T> 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 TryFromReprError<T> where U: Into<T>,

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

impl<T, U> TryInto<U> for TryFromReprError<T> where U: TryFrom<T>,

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