pub enum ValueTypeMismatchOrNoneError<E>where
E: Error,{
WrongValueType(E),
UnexpectedNone,
}
Variants§
Trait Implementations§
§impl<E> Clone for ValueTypeMismatchOrNoneError<E>where
E: Clone + Error,
impl<E> Clone for ValueTypeMismatchOrNoneError<E>where E: Clone + Error,
§fn clone(&self) -> ValueTypeMismatchOrNoneError<E>
fn clone(&self) -> ValueTypeMismatchOrNoneError<E>
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 more§impl<E> Debug for ValueTypeMismatchOrNoneError<E>where
E: Debug + Error,
impl<E> Debug for ValueTypeMismatchOrNoneError<E>where E: Debug + Error,
§impl<E> Display for ValueTypeMismatchOrNoneError<E>where
E: Error,
impl<E> Display for ValueTypeMismatchOrNoneError<E>where E: Error,
§impl<E> Error for ValueTypeMismatchOrNoneError<E>where
E: Error,
impl<E> Error for ValueTypeMismatchOrNoneError<E>where E: Error,
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
§impl<E> From<E> for ValueTypeMismatchOrNoneError<E>where
E: Error,
impl<E> From<E> for ValueTypeMismatchOrNoneError<E>where E: Error,
§fn from(err: E) -> ValueTypeMismatchOrNoneError<E>
fn from(err: E) -> ValueTypeMismatchOrNoneError<E>
Converts to this type from the input type.
§impl<E> PartialEq<ValueTypeMismatchOrNoneError<E>> for ValueTypeMismatchOrNoneError<E>where
E: PartialEq<E> + Error,
impl<E> PartialEq<ValueTypeMismatchOrNoneError<E>> for ValueTypeMismatchOrNoneError<E>where E: PartialEq<E> + Error,
§fn eq(&self, other: &ValueTypeMismatchOrNoneError<E>) -> bool
fn eq(&self, other: &ValueTypeMismatchOrNoneError<E>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<E> Eq for ValueTypeMismatchOrNoneError<E>where E: Eq + Error,
impl<E> StructuralEq for ValueTypeMismatchOrNoneError<E>where E: Error,
impl<E> StructuralPartialEq for ValueTypeMismatchOrNoneError<E>where E: Error,
Auto Trait Implementations§
impl<E> RefUnwindSafe for ValueTypeMismatchOrNoneError<E>where E: RefUnwindSafe,
impl<E> Send for ValueTypeMismatchOrNoneError<E>where E: Send,
impl<E> Sync for ValueTypeMismatchOrNoneError<E>where E: Sync,
impl<E> Unpin for ValueTypeMismatchOrNoneError<E>where E: Unpin,
impl<E> UnwindSafe for ValueTypeMismatchOrNoneError<E>where E: UnwindSafe,
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
§impl<T> RoundFrom<T> for T
impl<T> RoundFrom<T> for T
§fn round_from(x: T) -> T
fn round_from(x: T) -> T
Performs the conversion.
§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere U: RoundFrom<T>,
§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.