pub struct FromValueError { /* private fields */ }Expand description
Error raised when a value cannot be converted to the expected type when using
FnWrapper.
Implementations§
Source§impl FromValueError
impl FromValueError
Sourcepub fn kind(&self) -> &FromValueErrorKind
pub fn kind(&self) -> &FromValueErrorKind
Returns the error kind.
Sourcepub fn arg_index(&self) -> usize
pub fn arg_index(&self) -> usize
Returns the zero-based index of the argument where the error has occurred.
Sourcepub fn location(&self) -> &[FromValueErrorLocation]
pub fn location(&self) -> &[FromValueErrorLocation]
Returns the error location, starting from the outermost one.
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
Available on crate feature std only.
impl Error for FromValueError
Available on crate feature
std only.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()
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