pub enum Either4<T1, T2, T3, T4> {
One(T1),
Two(T2),
Three(T3),
Four(T4),
}
Variants§
Trait Implementations§
Source§impl<'a, NK, EK, S, T, T1, T2, T3, T4> Downcast<'a, NK, EK, Either4<&'a T1, &'a T2, &'a T3, &'a T4>, S> for T
impl<'a, NK, EK, S, T, T1, T2, T3, T4> Downcast<'a, NK, EK, Either4<&'a T1, &'a T2, &'a T3, &'a T4>, S> for T
Source§impl<T1: PartialEq, T2: PartialEq, T3: PartialEq, T4: PartialEq> PartialEq for Either4<T1, T2, T3, T4>
impl<T1: PartialEq, T2: PartialEq, T3: PartialEq, T4: PartialEq> PartialEq for Either4<T1, T2, T3, T4>
impl<T1: Eq, T2: Eq, T3: Eq, T4: Eq> Eq for Either4<T1, T2, T3, T4>
impl<T1, T2, T3, T4> StructuralPartialEq for Either4<T1, T2, T3, T4>
Auto Trait Implementations§
impl<T1, T2, T3, T4> Freeze for Either4<T1, T2, T3, T4>
impl<T1, T2, T3, T4> RefUnwindSafe for Either4<T1, T2, T3, T4>
impl<T1, T2, T3, T4> Send for Either4<T1, T2, T3, T4>
impl<T1, T2, T3, T4> Sync for Either4<T1, T2, T3, T4>
impl<T1, T2, T3, T4> Unpin for Either4<T1, T2, T3, T4>
impl<T1, T2, T3, T4> UnwindSafe for Either4<T1, T2, T3, T4>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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