pub struct UnknownVariant { /* private fields */ }Expand description
Error returned by FromStr implementations when no matching variant was found.
Indicates that the supplied string does not refer to a known key constant.
Trait Implementations§
Source§impl Debug for UnknownVariant
impl Debug for UnknownVariant
Source§impl Display for UnknownVariant
impl Display for UnknownVariant
Source§impl Error for UnknownVariant
impl Error for UnknownVariant
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<UnknownVariant> for Error
impl From<UnknownVariant> for Error
Source§fn from(value: UnknownVariant) -> Self
fn from(value: UnknownVariant) -> Self
Converts to this type from the input type.
Source§impl PartialEq for UnknownVariant
impl PartialEq for UnknownVariant
impl Eq for UnknownVariant
impl StructuralPartialEq for UnknownVariant
Auto Trait Implementations§
impl Freeze for UnknownVariant
impl RefUnwindSafe for UnknownVariant
impl Send for UnknownVariant
impl Sync for UnknownVariant
impl Unpin for UnknownVariant
impl UnwindSafe for UnknownVariant
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more