pub trait FmtIteratorExt: Sized + Iterator {
// Provided methods
fn format<'a>(self, separator: &'a str) -> Format<'a, Self>
where Self::Item: Display { ... }
fn format_with<'a, F>(
self,
separator: &'a str,
format: F,
) -> FormatWith<'a, Self, F>
where F: FnMut(&mut Formatter<'_>, Self::Item) -> Result<(), Error> { ... }
}Expand description
Iterator formatting helpers.
Provided Methods§
Sourcefn format<'a>(self, separator: &'a str) -> Format<'a, Self>
fn format<'a>(self, separator: &'a str) -> Format<'a, Self>
Formats each item separated by separator.
Sourcefn format_with<'a, F>(
self,
separator: &'a str,
format: F,
) -> FormatWith<'a, Self, F>
fn format_with<'a, F>( self, separator: &'a str, format: F, ) -> FormatWith<'a, Self, F>
Formats each item separated by separator, using format for each item.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".