pub struct InvalidType {
pub expected_variant: &'static str,
pub actual_variant: &'static str,
pub all_variants: &'static [&'static str],
/* private fields */
}
Expand description
The result of a failed conversion from TryFrom
.
Fields§
§expected_variant: &'static str
The variant this conversion is valid for.
actual_variant: &'static str
The actual variant.
all_variants: &'static [&'static str]
All possible variants.
Trait Implementations§
Source§impl Clone for InvalidType
impl Clone for InvalidType
Source§fn clone(&self) -> InvalidType
fn clone(&self) -> InvalidType
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for InvalidType
impl Debug for InvalidType
Source§impl PartialEq for InvalidType
impl PartialEq for InvalidType
impl Copy for InvalidType
impl StructuralPartialEq for InvalidType
Auto Trait Implementations§
impl Freeze for InvalidType
impl RefUnwindSafe for InvalidType
impl Send for InvalidType
impl Sync for InvalidType
impl Unpin for InvalidType
impl UnwindSafe for InvalidType
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