pub struct Misfit {
pub path: Vec<Step>,
pub why: String,
}Expand description
A value that doesn’t fit its type. why doesn’t quote the value; path names where.
Fields§
§path: Vec<Step>Where in the parameters, outermost first (config, "limits", 0); empty for the
whole.
why: StringWhy (not an ISO 8601 duration).
Implementations§
Trait Implementations§
impl Eq for Misfit
Source§impl Error for Misfit
impl Error for Misfit
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 StructuralPartialEq for Misfit
Auto Trait Implementations§
impl Freeze for Misfit
impl RefUnwindSafe for Misfit
impl Send for Misfit
impl Sync for Misfit
impl Unpin for Misfit
impl UnsafeUnpin for Misfit
impl UnwindSafe for Misfit
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