Struct ValueTypeMismatchError
pub struct ValueTypeMismatchError { /* private fields */ }Expand description
Implementations§
§impl ValueTypeMismatchError
impl ValueTypeMismatchError
pub fn new(actual: Type, requested: Type) -> ValueTypeMismatchError
§impl ValueTypeMismatchError
impl ValueTypeMismatchError
pub fn actual_type(&self) -> Type
pub fn requested_type(&self) -> Type
Trait Implementations§
§impl Clone for ValueTypeMismatchError
impl Clone for ValueTypeMismatchError
§fn clone(&self) -> ValueTypeMismatchError
fn clone(&self) -> ValueTypeMismatchError
Returns a duplicate 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 Debug for ValueTypeMismatchError
impl Debug for ValueTypeMismatchError
§impl Display for ValueTypeMismatchError
impl Display for ValueTypeMismatchError
§impl Error for ValueTypeMismatchError
impl Error for ValueTypeMismatchError
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()
§impl From<Infallible> for ValueTypeMismatchError
impl From<Infallible> for ValueTypeMismatchError
§fn from(e: Infallible) -> ValueTypeMismatchError
fn from(e: Infallible) -> ValueTypeMismatchError
Converts to this type from the input type.
§impl From<ValueTypeMismatchError> for InvalidCharError
impl From<ValueTypeMismatchError> for InvalidCharError
§fn from(err: ValueTypeMismatchError) -> InvalidCharError
fn from(err: ValueTypeMismatchError) -> InvalidCharError
Converts to this type from the input type.
§impl PartialEq for ValueTypeMismatchError
impl PartialEq for ValueTypeMismatchError
impl Eq for ValueTypeMismatchError
impl StructuralPartialEq for ValueTypeMismatchError
Auto Trait Implementations§
impl Freeze for ValueTypeMismatchError
impl RefUnwindSafe for ValueTypeMismatchError
impl Send for ValueTypeMismatchError
impl Sync for ValueTypeMismatchError
impl Unpin for ValueTypeMismatchError
impl UnwindSafe for ValueTypeMismatchError
Blanket Implementations§
§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.