Trait IteratorExt

Source
pub trait IteratorExt:
    Iterator
    + Sized
    + Clone
where Self::Item: Display,
{ // Provided methods fn display_concat(self) -> Concat<Self> { ... } fn display_join<J>(self, joiner: J) -> Join<Self, J> where J: Display { ... } fn display_join_format<J, C>( self, joiner: J, callback: C, ) -> JoinFormat<Self, J, C> where J: Display, C: Fn(Self::Item, &mut Formatter<'_>) -> Result { ... } }
Expand description

Extension trait providing convenient access to the base functions in the crate root.

Provided Methods§

Source

fn display_concat(self) -> Concat<Self>

Alias for crate::concat()

Source

fn display_join<J>(self, joiner: J) -> Join<Self, J>
where J: Display,

Alias for crate::join

Source

fn display_join_format<J, C>( self, joiner: J, callback: C, ) -> JoinFormat<Self, J, C>
where J: Display, C: Fn(Self::Item, &mut Formatter<'_>) -> Result,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<I: Iterator + Clone> IteratorExt for I
where I::Item: Display,