Struct DifferentVariant
pub struct DifferentVariant;
An error type indicating that a TryFrom call failed because the
original value was of a different variant.
Trait Implementations
impl Clone for DifferentVariant
fn clone(&self) -> DifferentVariant
impl Copy for DifferentVariant
impl Debug for DifferentVariant
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Display for DifferentVariant
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for DifferentVariant
impl Error for DifferentVariant
impl PartialEq for DifferentVariant
fn eq(&self, other: &DifferentVariant) -> bool
impl StructuralPartialEq for DifferentVariant
impl TryFrom<Error> for DifferentVariant
type Error = DifferentVariant;fn try_from(err: Error) -> Result<Self, Self::Error>
Auto Trait Implementations
impl Freeze for DifferentVariant
impl RefUnwindSafe for DifferentVariant
impl Send for DifferentVariant
impl Sync for DifferentVariant
impl Unpin for DifferentVariant
impl UnsafeUnpin for DifferentVariant
impl UnwindSafe for DifferentVariant
Blanket Implementations
impl<T> Any for DifferentVariant
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for DifferentVariant
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for DifferentVariant
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for DifferentVariant
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for DifferentVariant
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for DifferentVariant
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T> ToString for DifferentVariant
where
T: Display + ?Sized,
fn to_string(&self) -> String
impl<T, U> Into<U> for DifferentVariant
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for DifferentVariant
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for DifferentVariant
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>