pub trait AsItemFormatter<'c, I>: AsRef<[I]> + Sizedwhere
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§
Sourcefn as_item_formatter<S, F>(
&'c self,
separator: S,
fmt: F,
) -> ItemFormatter<'c, Self, I, F>
fn as_item_formatter<S, F>( &'c self, separator: S, fmt: F, ) -> ItemFormatter<'c, Self, I, F>
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.