Enum typed_graph::Either4
source · 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<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.