pub struct ErrorChain { /* private fields */ }Expand description
Chain multiple errors together for better debugging
Implementations§
Source§impl ErrorChain
impl ErrorChain
Sourcepub fn push_error<E>(self, error: E) -> Self
pub fn push_error<E>(self, error: E) -> Self
Add an error to the chain
Sourcepub fn push_context<S: Into<String>>(self, context: S) -> Self
pub fn push_context<S: Into<String>>(self, context: S) -> Self
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
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