Struct discrimination::discriminator::Product
[−]
[src]
pub struct Product<L, R: ?Sized> { pub is_right_biased: bool, pub left: L, pub right: R, }
Fields
is_right_biased: bool
left: L
right: R
Methods
impl<L, R> Product<L, R>
[src]
fn left_biased<A, B>(l: A, r: B) -> Product<L, R> where
A: Into<L>,
B: Into<R>,
A: Into<L>,
B: Into<R>,
fn right_biased<A, B>(l: A, r: B) -> Product<L, R> where
A: Into<L>,
B: Into<R>,
A: Into<L>,
B: Into<R>,
Trait Implementations
impl<L: Debug, R: Debug + ?Sized> Debug for Product<L, R>
[src]
impl<L: Copy, R: Copy + ?Sized> Copy for Product<L, R>
[src]
impl<L: Clone, R: Clone + ?Sized> Clone for Product<L, R>
[src]
fn clone(&self) -> Product<L, R>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<L: Default, R: Default + ?Sized> Default for Product<L, R>
[src]
impl<'a, J: 'a, K: 'a, L, R: ?Sized> Discriminator<'a, (J, K)> for Product<L, R> where
L: Discriminator<'a, J>,
R: Discriminator<'a, K>,
[src]
L: Discriminator<'a, J>,
R: Discriminator<'a, K>,
fn discriminate_sorted<V: 'a, I>(
&'a self,
pairs: I
) -> DiscriminateSorted<'a, (J, K), V> where
I: IntoIterator,
I::Item: Into<((J, K), V)>,
I::IntoIter: DoubleEndedIterator + 'a,
&'a self,
pairs: I
) -> DiscriminateSorted<'a, (J, K), V> where
I: IntoIterator,
I::Item: Into<((J, K), V)>,
I::IntoIter: DoubleEndedIterator + 'a,
fn by_ref(&'a self) -> &'a Self
fn invert(self) -> Invert<Self> where
Self: Sized,
Self: Sized,
fn map_key<J: 'a, F>(self, f: F) -> Map<F, Self> where
Self: Sized,
F: Fn(J) -> K,
Self: Sized,
F: Fn(J) -> K,
fn sum_left<J: 'a, D>(self, other: D) -> Sum<Self, D> where
Self: Sized,
D: Discriminator<'a, J>,
Self: Sized,
D: Discriminator<'a, J>,
fn sum_right<J: 'a, D>(self, other: D) -> Sum<Self, D> where
Self: Sized,
D: Discriminator<'a, J>,
Self: Sized,
D: Discriminator<'a, J>,
fn product_left<J: 'a, D>(self, other: D) -> Product<Self, D> where
Self: Sized,
D: Discriminator<'a, J>,
Self: Sized,
D: Discriminator<'a, J>,
fn product_right<J: 'a, D>(self, other: D) -> Product<Self, D> where
Self: Sized,
D: Discriminator<'a, J>,
Self: Sized,
D: Discriminator<'a, J>,