pub struct VariantCastError {
pub enum_type: &'static str,
pub exp_type: &'static str,
pub variant_name: &'static str,
}Expand description
Different variant than expected during TryFrom
Fields§
§enum_type: &'static strEnum type
exp_type: &'static strExpected variant
variant_name: &'static strActual variant
Trait Implementations§
Source§impl Debug for VariantCastError
impl Debug for VariantCastError
Source§impl Display for VariantCastError
impl Display for VariantCastError
Source§impl Error for VariantCastError
impl Error for VariantCastError
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 PartialEq for VariantCastError
impl PartialEq for VariantCastError
impl Eq for VariantCastError
impl StructuralPartialEq for VariantCastError
Auto Trait Implementations§
impl Freeze for VariantCastError
impl RefUnwindSafe for VariantCastError
impl Send for VariantCastError
impl Sync for VariantCastError
impl Unpin for VariantCastError
impl UnwindSafe for VariantCastError
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