Struct discrimination::discriminator::Sum [] [src]

pub struct Sum<L, R: ?Sized> {
    pub is_right_biased: bool,
    pub left: L,
    pub right: R,
}

Fields

Methods

impl<L, R> Sum<L, R>
[src]

Trait Implementations

impl<L: Debug, R: Debug + ?Sized> Debug for Sum<L, R>
[src]

Formats the value using the given formatter.

impl<L: Copy, R: Copy + ?Sized> Copy for Sum<L, R>
[src]

impl<L: Clone, R: Clone + ?Sized> Clone for Sum<L, R>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<L: Default, R: Default + ?Sized> Default for Sum<L, R>
[src]

Returns the "default value" for a type. Read more

impl<'a, J: 'a, K: 'a, L, R: ?Sized> Discriminator<'a, Either<J, K>> for Sum<L, R> where
    L: Discriminator<'a, J>,
    R: Discriminator<'a, K>, 
[src]