Enum typed_graph::Either3
source · pub enum Either3<T1, T2, T3> {
One(T1),
Two(T2),
Three(T3),
}
Variants§
Trait Implementations§
source§impl<'a, NK, EK, S, T, T1, T2, T3> Downcast<'a, NK, EK, Either3<&'a T1, &'a T2, &'a T3>, S> for T
impl<'a, NK, EK, S, T, T1, T2, T3> Downcast<'a, NK, EK, Either3<&'a T1, &'a T2, &'a T3>, S> for T
source§impl<T1: PartialEq, T2: PartialEq, T3: PartialEq> PartialEq for Either3<T1, T2, T3>
impl<T1: PartialEq, T2: PartialEq, T3: PartialEq> PartialEq for Either3<T1, T2, T3>
impl<T1: Eq, T2: Eq, T3: Eq> Eq for Either3<T1, T2, T3>
impl<T1, T2, T3> StructuralPartialEq for Either3<T1, T2, T3>
Auto Trait Implementations§
impl<T1, T2, T3> Freeze for Either3<T1, T2, T3>
impl<T1, T2, T3> RefUnwindSafe for Either3<T1, T2, T3>
impl<T1, T2, T3> Send for Either3<T1, T2, T3>
impl<T1, T2, T3> Sync for Either3<T1, T2, T3>
impl<T1, T2, T3> Unpin for Either3<T1, T2, T3>
impl<T1, T2, T3> UnwindSafe for Either3<T1, T2, T3>
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.