Enum coalesce::Coalesce2 [] [src]

pub enum Coalesce2<A, B> {
    A(A),
    B(B),
}

Variants

A
B

Methods

impl<A, B> Coalesce2<A, B>

fn as_ref(&self) -> Coalesce2<&A, &B>

fn as_mut(&mut self) -> Coalesce2<&mut A, &mut B>

Trait Implementations

Derived Implementations

impl<A: Ord, B: Ord> Ord for Coalesce2<A, B> where A: Ord, B: Ord

fn cmp(&self, __arg_0: &Coalesce2<A, B>) -> Ordering

impl<A: PartialOrd, B: PartialOrd> PartialOrd for Coalesce2<A, B> where A: PartialOrd, B: PartialOrd

fn partial_cmp(&self, __arg_0: &Coalesce2<A, B>) -> Option<Ordering>

fn lt(&self, __arg_0: &Coalesce2<A, B>) -> bool

fn le(&self, __arg_0: &Coalesce2<A, B>) -> bool

fn gt(&self, __arg_0: &Coalesce2<A, B>) -> bool

fn ge(&self, __arg_0: &Coalesce2<A, B>) -> bool

impl<A: Eq, B: Eq> Eq for Coalesce2<A, B> where A: Eq, B: Eq

impl<A: PartialEq, B: PartialEq> PartialEq for Coalesce2<A, B> where A: PartialEq, B: PartialEq

fn eq(&self, __arg_0: &Coalesce2<A, B>) -> bool

fn ne(&self, __arg_0: &Coalesce2<A, B>) -> bool

impl<A: Hash, B: Hash> Hash for Coalesce2<A, B> where A: Hash, B: Hash

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl<A: Debug, B: Debug> Debug for Coalesce2<A, B> where A: Debug, B: Debug

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl<A: Clone, B: Clone> Clone for Coalesce2<A, B> where A: Clone, B: Clone

fn clone(&self) -> Coalesce2<A, B>

fn clone_from(&mut self, source: &Self)

impl<A: Copy, B: Copy> Copy for Coalesce2<A, B> where A: Copy, B: Copy