Struct value_trait::TryTypeError
source · Expand description
A type error thrown by the try_* functions
Fields
expected: ValueTypeThe expected value type
got: ValueTypeThe actual value type
Trait Implementations
sourceimpl Clone for TryTypeError
impl Clone for TryTypeError
sourcefn clone(&self) -> TryTypeError
fn clone(&self) -> TryTypeError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for TryTypeError
impl Debug for TryTypeError
sourceimpl Display for TryTypeError
impl Display for TryTypeError
sourceimpl Error for TryTypeError
impl Error for TryTypeError
1.30.0 · sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations
impl RefUnwindSafe for TryTypeError
impl Send for TryTypeError
impl Sync for TryTypeError
impl Unpin for TryTypeError
impl UnwindSafe for TryTypeError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more