pub struct BothError<E, F> {
pub left: E,
pub right: F,
}
Expand description
Represents errors returned by Or
.
Fields§
§left: E
Left error (P
failed).
right: F
Right error (Q
failed).
Implementations§
Trait Implementations§
Source§impl<E: ErrorCore, F: ErrorCore> Error for BothError<E, F>
impl<E: ErrorCore, F: ErrorCore> Error for BothError<E, F>
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<E, F> Freeze for BothError<E, F>
impl<E, F> RefUnwindSafe for BothError<E, F>where
E: RefUnwindSafe,
F: RefUnwindSafe,
impl<E, F> Send for BothError<E, F>
impl<E, F> Sync for BothError<E, F>
impl<E, F> Unpin for BothError<E, F>
impl<E, F> UnwindSafe for BothError<E, F>where
E: UnwindSafe,
F: UnwindSafe,
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