Enum joinery::JoinItem[][src]

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

Enum representing the elements of a JoinIter.

Variants

An element from the underlying iterator

A separator between two elements

Methods

impl<T, S> JoinItem<T, S>
[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: Debug, S: Debug> Debug for JoinItem<T, S>
[src]

Formats the value using the given formatter. Read more

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

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

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

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

Feeds this value into the given [Hasher]. Read more

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

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

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

Performs the conversion.

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

Formats the value using the given formatter. Read more

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