AsItemFormatter

Trait AsItemFormatter 

Source
pub trait AsItemFormatter<'c, I>: AsRef<[I]> + Sized
where I: 'c,
{ // Provided method fn as_item_formatter<S, F>( &'c self, separator: S, fmt: F, ) -> ItemFormatter<'c, Self, I, F> where S: ToString, F: Fn(&mut Formatter<'_>, &'c I) -> Result { ... } }
Expand description

Trait to interpret a collection as an item formatter.

Provided Methods§

Source

fn as_item_formatter<S, F>( &'c self, separator: S, fmt: F, ) -> ItemFormatter<'c, Self, I, F>
where S: ToString, F: Fn(&mut Formatter<'_>, &'c I) -> Result,

Create an item formatter from self.

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<'c, I, C> AsItemFormatter<'c, I> for C
where I: 'c, C: AsRef<[I]> + Sized,