Struct FormatWith

pub struct FormatWith<'a, I, F> { /* private fields */ }

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.

Trait Implementations

impl<I, F> Clone for FormatWith<'_, I, F> where (I, F): Clone,

fn clone(&self) -> Self

impl<I, F> Debug for FormatWith<'_, I, F> where I: Iterator, F: FnMut(I::Item, &mut dyn FnMut(&dyn Display) -> Result) -> Result,

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl<I, F> Display for FormatWith<'_, I, F> where I: Iterator, F: FnMut(I::Item, &mut dyn FnMut(&dyn Display) -> Result) -> Result,

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Auto Trait Implementations

impl<'a, I, F> !Freeze for FormatWith<'a, I, F>

impl<'a, I, F> !RefUnwindSafe for FormatWith<'a, I, F>

impl<'a, I, F> !Sync for FormatWith<'a, I, F>

impl<'a, I, F> Send for FormatWith<'a, I, F> where Cell<Option<(I, F)>>: Send,

impl<'a, I, F> Unpin for FormatWith<'a, I, F> where Cell<Option<(I, F)>>: Unpin,

impl<'a, I, F> UnsafeUnpin for FormatWith<'a, I, F> where Cell<Option<(I, F)>>: UnsafeUnpin,

impl<'a, I, F> UnwindSafe for FormatWith<'a, I, F> where Cell<Option<(I, F)>>: UnwindSafe,

Blanket Implementations

impl<T> Any for FormatWith<'a, I, F> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for FormatWith<'a, I, F> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for FormatWith<'a, I, F> where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> CloneToUninit for FormatWith<'a, I, F> where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for FormatWith<'a, I, F>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> IntoEither for FormatWith<'a, I, F>

impl<T> ToOwned for FormatWith<'a, I, F> where T: Clone,

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

impl<T> ToString for FormatWith<'a, I, F> where T: Display + ?Sized,

fn to_string(&self) -> String

impl<T, U> Into<U> for FormatWith<'a, I, F> where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for FormatWith<'a, I, F> where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for FormatWith<'a, I, F> where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>