[][src]Enum joinery::iter::JoinItem

pub enum JoinItem<T, S> {
    Element(T),
    Separator(S),
}

Enum representing the elements of a JoinIter.

Variants

Element(T)

An element from the underlying iterator

Separator(S)

A separator between two elements

Methods

impl<T, S> JoinItem<T, S>[src]

pub fn into<R>(self) -> R where
    T: Into<R>,
    S: Into<R>, 
[src]

Convert a JoinItem into a common type R, in the case where both T and S can be converted to R. Unfortunately, due to potentially conflicting implementations, we can't implement Into<R> for JoinItem.

Trait Implementations

impl<T: Clone, S: Clone> Clone for JoinItem<T, S>[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T: Debug, S: Debug> Debug for JoinItem<T, S>[src]

impl<T: Display, S: Display> Display for JoinItem<T, S>[src]

impl<T: PartialEq, S: PartialEq> PartialEq<JoinItem<T, S>> for JoinItem<T, S>[src]

impl<T: Eq, S: Eq> Eq for JoinItem<T, S>[src]

impl<T: Hash, S: Hash> Hash for JoinItem<T, S>[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl<R, T: AsRef<R>, S: AsRef<R>> AsRef<R> for JoinItem<T, S>[src]

fn as_ref(&self) -> &R[src]

Get a reference to a common type R from a JoinItem, in the case where both T and S implement AsRef<R>

impl<R, T: AsMut<R>, S: AsMut<R>> AsMut<R> for JoinItem<T, S>[src]

fn as_mut(&mut self) -> &mut R[src]

Get a mutable reference to a common type R from a JoinItem, in the case where both T and S implement AsMut<R>

Auto Trait Implementations

impl<T, S> Send for JoinItem<T, S> where
    S: Send,
    T: Send

impl<T, S> Sync for JoinItem<T, S> where
    S: Sync,
    T: Sync

Blanket Implementations

impl<T> From for T[src]

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

type Error = !

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

The type returned in the event of a conversion error.

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

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

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

The type returned in the event of a conversion error.

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

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

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

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