[][src]Enum sum::Sum1

pub enum Sum1<A> {
    A(A),
}

Variants

A(A)

Implementations

impl<A> Sum1<A>[src]

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

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

pub fn as_ref(&self) -> Sum1<&A>

Important traits for Sum1<A>

impl<A> Iterator for Sum1<A> where
    A: Iterator
type Item = A::Item;impl<A> Future for Sum1<A> where
    A: Future
type Output = A::Output;
[src]

pub fn as_mut(&mut self) -> Sum1<&mut A>

Important traits for Sum1<A>

impl<A> Iterator for Sum1<A> where
    A: Iterator
type Item = A::Item;impl<A> Future for Sum1<A> where
    A: Future
type Output = A::Output;
[src]

pub fn as_pin_ref<'a>(self: Pin<&'a Self>) -> Sum1<Pin<&'a A>>

Important traits for Sum1<A>

impl<A> Iterator for Sum1<A> where
    A: Iterator
type Item = A::Item;impl<A> Future for Sum1<A> where
    A: Future
type Output = A::Output;
[src]

pub fn as_pin_mut<'a>(self: Pin<&'a mut Self>) -> Sum1<Pin<&'a mut A>>

Important traits for Sum1<A>

impl<A> Iterator for Sum1<A> where
    A: Iterator
type Item = A::Item;impl<A> Future for Sum1<A> where
    A: Future
type Output = A::Output;
[src]

impl<A> Sum1<A>[src]

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

Trait Implementations

impl<A, Target> AsMut<Target> for Sum1<A> where
    A: AsMut<Target>, 
[src]

impl<A, Target> AsRef<Target> for Sum1<A> where
    A: AsRef<Target>, 
[src]

impl<A: Clone> Clone for Sum1<A>[src]

impl<A: Copy> Copy for Sum1<A>[src]

impl<A: Debug> Debug for Sum1<A>[src]

impl<A> Deref for Sum1<A> where
    A: Deref
[src]

type Target = A::Target

The resulting type after dereferencing.

impl<A> DerefMut for Sum1<A> where
    A: DerefMut
[src]

impl<'de, A> Deserialize<'de> for Sum1<A> where
    A: Deserialize<'de>, 
[src]

impl<A> Display for Sum1<A> where
    A: Display
[src]

impl<A> DoubleEndedIterator for Sum1<A> where
    A: DoubleEndedIterator
[src]

impl<A: Eq> Eq for Sum1<A>[src]

impl<A> Error for Sum1<A> where
    A: Error
[src]

impl<A> ExactSizeIterator for Sum1<A> where
    A: ExactSizeIterator
[src]

impl<A> Future for Sum1<A> where
    A: Future
[src]

type Output = A::Output

The type of value produced on completion.

impl<A: Hash> Hash for Sum1<A>[src]

impl<A> Iterator for Sum1<A> where
    A: Iterator
[src]

type Item = A::Item

The type of the elements being iterated over.

impl<A: Ord> Ord for Sum1<A>[src]

impl<A: PartialEq> PartialEq<Sum1<A>> for Sum1<A>[src]

impl<A: PartialOrd> PartialOrd<Sum1<A>> for Sum1<A>[src]

impl<A> Serialize for Sum1<A> where
    A: Serialize
[src]

impl<A> StructuralEq for Sum1<A>[src]

impl<A> StructuralPartialEq for Sum1<A>[src]

Auto Trait Implementations

impl<A> RefUnwindSafe for Sum1<A> where
    A: RefUnwindSafe

impl<A> Send for Sum1<A> where
    A: Send

impl<A> Sync for Sum1<A> where
    A: Sync

impl<A> Unpin for Sum1<A> where
    A: Unpin

impl<A> UnwindSafe for Sum1<A> where
    A: 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.