pub struct AccumulatedError { /* private fields */ }
Expand description
A list of recorded errors and their source’s path in the input.
Implementations§
Source§impl AccumulatedError
impl AccumulatedError
Sourcepub fn get_by_type<E>(&self) -> impl Iterator<Item = (&SourcePath, &E)>
pub fn get_by_type<E>(&self) -> impl Iterator<Item = (&SourcePath, &E)>
Get all accumulated errors of the given type.
Errors are in accumulation order.
Sourcepub fn get_by_path(
&self,
path: &SourcePath,
) -> impl Iterator<Item = &Box<dyn Error + Send + Sync>>
pub fn get_by_path( &self, path: &SourcePath, ) -> impl Iterator<Item = &Box<dyn Error + Send + Sync>>
Get all accumulated errors for a given path.
Errors are in accumulation order.
Trait Implementations§
Source§impl Debug for AccumulatedError
impl Debug for AccumulatedError
Source§impl Default for AccumulatedError
impl Default for AccumulatedError
Source§fn default() -> AccumulatedError
fn default() -> AccumulatedError
Returns the “default value” for a type. Read more
Source§impl Display for AccumulatedError
impl Display for AccumulatedError
Source§impl Error for AccumulatedError
impl Error for AccumulatedError
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 AccumulatedError
impl !RefUnwindSafe for AccumulatedError
impl Send for AccumulatedError
impl Sync for AccumulatedError
impl Unpin for AccumulatedError
impl !UnwindSafe for AccumulatedError
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