pub enum FromValueError {
TypeMismatch {
expected: Type,
found: Type,
},
OutOfRange {
value: String,
target_type: &'static str,
},
}Expand description
Error type for Value extraction failures
Variants§
TypeMismatch
The Value variant doesn’t match the expected type
OutOfRange
Numeric value out of range for target type
Trait Implementations§
Source§impl Clone for FromValueError
impl Clone for FromValueError
Source§fn clone(&self) -> FromValueError
fn clone(&self) -> FromValueError
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 moreSource§impl Debug for FromValueError
impl Debug for FromValueError
Source§impl Display for FromValueError
impl Display for FromValueError
Source§impl Error for FromValueError
impl Error for FromValueError
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 PartialEq for FromValueError
impl PartialEq for FromValueError
impl StructuralPartialEq for FromValueError
Auto Trait Implementations§
impl Freeze for FromValueError
impl RefUnwindSafe for FromValueError
impl Send for FromValueError
impl Sync for FromValueError
impl Unpin for FromValueError
impl UnwindSafe for FromValueError
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