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