pub enum EitherError<L, R> {
Left(L),
Right(R),
}Expand description
An error from either left or right.
Only returned from Conj.
Variants§
Implementations§
Source§impl<L, R> EitherError<L, R>
impl<L, R> EitherError<L, R>
Sourcepub fn discriminant(&self) -> Discriminant<Self>
pub fn discriminant(&self) -> Discriminant<Self>
Find the discriminant.
Trait Implementations§
Source§impl<L, R> Display for EitherError<L, R>
impl<L, R> Display for EitherError<L, R>
Source§impl<L, R> Error for EitherError<L, R>
impl<L, R> Error for EitherError<L, R>
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<L, R> Freeze for EitherError<L, R>
impl<L, R> RefUnwindSafe for EitherError<L, R>where
L: RefUnwindSafe,
R: RefUnwindSafe,
impl<L, R> Send for EitherError<L, R>
impl<L, R> Sync for EitherError<L, R>
impl<L, R> Unpin for EitherError<L, R>
impl<L, R> UnwindSafe for EitherError<L, R>where
L: UnwindSafe,
R: 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