pub struct VariantError<V: Debug + Display>(pub Option<String>, pub V);
Tuple Fields§
§0: Option<String>
§1: V
Implementations§
Trait Implementations§
Source§impl<V: Clone + Debug + Display> Clone for VariantError<V>
impl<V: Clone + Debug + Display> Clone for VariantError<V>
Source§fn clone(&self) -> VariantError<V>
fn clone(&self) -> VariantError<V>
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<V: Debug + Display> Error for VariantError<V>
impl<V: Debug + Display> Error for VariantError<V>
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<V: Debug + Display> From<VariantError<V>> for String
impl<V: Debug + Display> From<VariantError<V>> for String
Source§fn from(err: VariantError<V>) -> Self
fn from(err: VariantError<V>) -> Self
Converts to this type from the input type.
impl<V: Eq + Debug + Display> Eq for VariantError<V>
impl<V: Debug + Display> StructuralPartialEq for VariantError<V>
Auto Trait Implementations§
impl<V> Freeze for VariantError<V>where
V: Freeze,
impl<V> RefUnwindSafe for VariantError<V>where
V: RefUnwindSafe,
impl<V> Send for VariantError<V>where
V: Send,
impl<V> Sync for VariantError<V>where
V: Sync,
impl<V> Unpin for VariantError<V>where
V: Unpin,
impl<V> UnwindSafe for VariantError<V>where
V: UnwindSafe,
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