[][src]Enum sum::Sum3

pub enum Sum3<A, B, C> {
    A(A),
    B(B),
    C(C),
}

Variants

A(A)
B(B)
C(C)

Implementations

impl<A, B, C> Sum3<A, B, C>[src]

pub fn is_a(&self) -> bool[src]

pub fn a(self) -> Option<A>[src]

pub fn is_b(&self) -> bool[src]

pub fn b(self) -> Option<B>[src]

pub fn is_c(&self) -> bool[src]

pub fn c(self) -> Option<C>[src]

pub fn as_ref(&self) -> Sum3<&A, &B, &C>

Important traits for Sum3<A, B, C>

impl<A, B, C> Iterator for Sum3<A, B, C> where
    A: Iterator,
    B: Iterator<Item = A::Item>,
    C: Iterator<Item = A::Item>, 
type Item = A::Item;impl<A, B, C> Future for Sum3<A, B, C> where
    A: Future,
    B: Future<Output = A::Output>,
    C: Future<Output = A::Output>, 
type Output = A::Output;
[src]

pub fn as_mut(&mut self) -> Sum3<&mut A, &mut B, &mut C>

Important traits for Sum3<A, B, C>

impl<A, B, C> Iterator for Sum3<A, B, C> where
    A: Iterator,
    B: Iterator<Item = A::Item>,
    C: Iterator<Item = A::Item>, 
type Item = A::Item;impl<A, B, C> Future for Sum3<A, B, C> where
    A: Future,
    B: Future<Output = A::Output>,
    C: Future<Output = A::Output>, 
type Output = A::Output;
[src]

pub fn as_pin_ref<'a>(
    self: Pin<&'a Self>
) -> Sum3<Pin<&'a A>, Pin<&'a B>, Pin<&'a C>>

Important traits for Sum3<A, B, C>

impl<A, B, C> Iterator for Sum3<A, B, C> where
    A: Iterator,
    B: Iterator<Item = A::Item>,
    C: Iterator<Item = A::Item>, 
type Item = A::Item;impl<A, B, C> Future for Sum3<A, B, C> where
    A: Future,
    B: Future<Output = A::Output>,
    C: Future<Output = A::Output>, 
type Output = A::Output;
[src]

pub fn as_pin_mut<'a>(
    self: Pin<&'a mut Self>
) -> Sum3<Pin<&'a mut A>, Pin<&'a mut B>, Pin<&'a mut C>>

Important traits for Sum3<A, B, C>

impl<A, B, C> Iterator for Sum3<A, B, C> where
    A: Iterator,
    B: Iterator<Item = A::Item>,
    C: Iterator<Item = A::Item>, 
type Item = A::Item;impl<A, B, C> Future for Sum3<A, B, C> where
    A: Future,
    B: Future<Output = A::Output>,
    C: Future<Output = A::Output>, 
type Output = A::Output;
[src]

impl<A> Sum3<A, A, A>[src]

pub fn into_inner(self) -> A[src]

Trait Implementations

impl<A, B, C, Target> AsMut<Target> for Sum3<A, B, C> where
    A: AsMut<Target>,
    B: AsMut<Target>,
    C: AsMut<Target>, 
[src]

impl<A, B, C, Target> AsRef<Target> for Sum3<A, B, C> where
    A: AsRef<Target>,
    B: AsRef<Target>,
    C: AsRef<Target>, 
[src]

impl<A: Clone, B: Clone, C: Clone> Clone for Sum3<A, B, C>[src]

impl<A: Copy, B: Copy, C: Copy> Copy for Sum3<A, B, C>[src]

impl<A: Debug, B: Debug, C: Debug> Debug for Sum3<A, B, C>[src]

impl<A, B, C> Deref for Sum3<A, B, C> where
    A: Deref,
    B: Deref<Target = A::Target>,
    C: Deref<Target = A::Target>, 
[src]

type Target = A::Target

The resulting type after dereferencing.

impl<A, B, C> DerefMut for Sum3<A, B, C> where
    A: DerefMut,
    B: DerefMut<Target = A::Target>,
    C: DerefMut<Target = A::Target>, 
[src]

impl<'de, A, B, C> Deserialize<'de> for Sum3<A, B, C> where
    A: Deserialize<'de>,
    B: Deserialize<'de>,
    C: Deserialize<'de>, 
[src]

impl<A, B, C> Display for Sum3<A, B, C> where
    A: Display,
    B: Display,
    C: Display
[src]

impl<A, B, C> DoubleEndedIterator for Sum3<A, B, C> where
    A: DoubleEndedIterator,
    B: DoubleEndedIterator<Item = A::Item>,
    C: DoubleEndedIterator<Item = A::Item>, 
[src]

impl<A: Eq, B: Eq, C: Eq> Eq for Sum3<A, B, C>[src]

impl<A, B, C> Error for Sum3<A, B, C> where
    A: Error,
    B: Error,
    C: Error
[src]

impl<A, B, C> ExactSizeIterator for Sum3<A, B, C> where
    A: ExactSizeIterator,
    B: ExactSizeIterator<Item = A::Item>,
    C: ExactSizeIterator<Item = A::Item>, 
[src]

impl<A, B, C> Future for Sum3<A, B, C> where
    A: Future,
    B: Future<Output = A::Output>,
    C: Future<Output = A::Output>, 
[src]

type Output = A::Output

The type of value produced on completion.

impl<A: Hash, B: Hash, C: Hash> Hash for Sum3<A, B, C>[src]

impl<A, B, C> Iterator for Sum3<A, B, C> where
    A: Iterator,
    B: Iterator<Item = A::Item>,
    C: Iterator<Item = A::Item>, 
[src]

type Item = A::Item

The type of the elements being iterated over.

impl<A: Ord, B: Ord, C: Ord> Ord for Sum3<A, B, C>[src]

impl<A: PartialEq, B: PartialEq, C: PartialEq> PartialEq<Sum3<A, B, C>> for Sum3<A, B, C>[src]

impl<A: PartialOrd, B: PartialOrd, C: PartialOrd> PartialOrd<Sum3<A, B, C>> for Sum3<A, B, C>[src]

impl<A, B, C> Serialize for Sum3<A, B, C> where
    A: Serialize,
    B: Serialize,
    C: Serialize
[src]

impl<A, B, C> StructuralEq for Sum3<A, B, C>[src]

impl<A, B, C> StructuralPartialEq for Sum3<A, B, C>[src]

Auto Trait Implementations

impl<A, B, C> RefUnwindSafe for Sum3<A, B, C> where
    A: RefUnwindSafe,
    B: RefUnwindSafe,
    C: RefUnwindSafe

impl<A, B, C> Send for Sum3<A, B, C> where
    A: Send,
    B: Send,
    C: Send

impl<A, B, C> Sync for Sum3<A, B, C> where
    A: Sync,
    B: Sync,
    C: Sync

impl<A, B, C> Unpin for Sum3<A, B, C> where
    A: Unpin,
    B: Unpin,
    C: Unpin

impl<A, B, C> UnwindSafe for Sum3<A, B, C> where
    A: UnwindSafe,
    B: UnwindSafe,
    C: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.