[][src]Enum sum::Sum4

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

Variants

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

Implementations

impl<A, B, C, D> Sum4<A, B, C, D>[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 is_d(&self) -> bool[src]

pub fn d(self) -> Option<D>[src]

pub fn as_ref(&self) -> Sum4<&A, &B, &C, &D>[src]

pub fn as_mut(&mut self) -> Sum4<&mut A, &mut B, &mut C, &mut D>[src]

pub fn as_pin_ref<'a>(
    self: Pin<&'a Self>
) -> Sum4<Pin<&'a A>, Pin<&'a B>, Pin<&'a C>, Pin<&'a D>>
[src]

pub fn as_pin_mut<'a>(
    self: Pin<&'a mut Self>
) -> Sum4<Pin<&'a mut A>, Pin<&'a mut B>, Pin<&'a mut C>, Pin<&'a mut D>>
[src]

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

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

Trait Implementations

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

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

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

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

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

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

type Target = A::Target

The resulting type after dereferencing.

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

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

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

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

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

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

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

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

type Output = A::Output

The type of value produced on completion.

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

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

type Item = A::Item

The type of the elements being iterated over.

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

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

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

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

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

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

Auto Trait Implementations

impl<A, B, C, D> RefUnwindSafe for Sum4<A, B, C, D> where
    A: RefUnwindSafe,
    B: RefUnwindSafe,
    C: RefUnwindSafe,
    D: RefUnwindSafe

impl<A, B, C, D> Send for Sum4<A, B, C, D> where
    A: Send,
    B: Send,
    C: Send,
    D: Send

impl<A, B, C, D> Sync for Sum4<A, B, C, D> where
    A: Sync,
    B: Sync,
    C: Sync,
    D: Sync

impl<A, B, C, D> Unpin for Sum4<A, B, C, D> where
    A: Unpin,
    B: Unpin,
    C: Unpin,
    D: Unpin

impl<A, B, C, D> UnwindSafe for Sum4<A, B, C, D> where
    A: UnwindSafe,
    B: UnwindSafe,
    C: UnwindSafe,
    D: 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<F> IntoFuture for F where
    F: Future
[src]

type Output = <F as Future>::Output

🔬 This is a nightly-only experimental API. (into_future)

The output that the future will produce on completion.

type Future = F

🔬 This is a nightly-only experimental API. (into_future)

Which kind of future are we turning this into?

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.