pub struct ErrorChain { /* private fields */ }Expand description
Chain multiple errors together for better debugging
Implementations§
Source§impl ErrorChain
impl ErrorChain
Sourcepub fn new() -> ErrorChain
pub fn new() -> ErrorChain
Create a new error chain
Sourcepub fn push_error<E>(self, error: E) -> ErrorChain
pub fn push_error<E>(self, error: E) -> ErrorChain
Add an error to the chain
Sourcepub fn push_context<S>(self, context: S) -> ErrorChain
pub fn push_context<S>(self, context: S) -> ErrorChain
Add context to the chain
Sourcepub fn into_error(self) -> SklearsError
pub fn into_error(self) -> SklearsError
Convert to SklearsError
Trait Implementations§
Source§impl Debug for ErrorChain
impl Debug for ErrorChain
Source§impl Default for ErrorChain
impl Default for ErrorChain
Source§fn default() -> ErrorChain
fn default() -> ErrorChain
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ErrorChain
impl !RefUnwindSafe for ErrorChain
impl Send for ErrorChain
impl Sync for ErrorChain
impl Unpin for ErrorChain
impl !UnwindSafe for ErrorChain
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more