Struct arithmetic_eval::fns::FromValueError
source · 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 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 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)>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)