Struct itertools::format::FormatWith
source · Expand description
Format all iterator elements lazily, separated by sep
.
The format value can only be formatted once, after that the iterator is exhausted.
See .format_with()
for more information.
Fields
sep: &'a str
inner: RefCell<Option<(I, F)>>
FormatWith uses interior mutability because Display::fmt takes &self.
Trait Implementations
Auto Trait Implementations
impl<'a, I, F> !RefUnwindSafe for FormatWith<'a, I, F>
impl<'a, I, F> Send for FormatWith<'a, I, F>where
F: Send,
I: Send,
impl<'a, I, F> !Sync for FormatWith<'a, I, F>
impl<'a, I, F> Unpin for FormatWith<'a, I, F>where
F: Unpin,
I: Unpin,
impl<'a, I, F> UnwindSafe for FormatWith<'a, I, F>where
F: UnwindSafe,
I: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more