Skip to main content

JoinWrite

Struct JoinWrite 

Source
pub(crate) struct JoinWrite<'a, T, I, B, F1, F2, F3, F4>
where I: IntoIterator<Item = T>, B: Write, F1: FnMut(&mut B) -> Result, F2: FnMut(&mut B, T) -> Result, F3: FnMut(&mut B) -> Result, F4: FnMut(&mut B) -> Result,
{ pub buf: &'a mut B, pub items: I, pub at_first: F1, pub do: F2, pub join: F3, pub at_last: F4, }

Fields§

§buf: &'a mut B§items: I§at_first: F1§do: F2§join: F3§at_last: F4

Implementations§

Source§

impl<T, I, B, F1, F2, F3, F4> JoinWrite<'_, T, I, B, F1, F2, F3, F4>
where I: IntoIterator<Item = T>, B: Write, F1: FnMut(&mut B) -> Result, F2: FnMut(&mut B, T) -> Result, F3: FnMut(&mut B) -> Result, F4: FnMut(&mut B) -> Result,

Source

pub fn exec(self) -> Result

Auto Trait Implementations§

§

impl<'a, T, I, B, F1, F2, F3, F4> Freeze for JoinWrite<'a, T, I, B, F1, F2, F3, F4>
where I: Freeze, F1: Freeze, F2: Freeze, F3: Freeze, F4: Freeze,

§

impl<'a, T, I, B, F1, F2, F3, F4> RefUnwindSafe for JoinWrite<'a, T, I, B, F1, F2, F3, F4>

§

impl<'a, T, I, B, F1, F2, F3, F4> Send for JoinWrite<'a, T, I, B, F1, F2, F3, F4>
where I: Send, F1: Send, F2: Send, F3: Send, F4: Send, B: Send,

§

impl<'a, T, I, B, F1, F2, F3, F4> Sync for JoinWrite<'a, T, I, B, F1, F2, F3, F4>
where I: Sync, F1: Sync, F2: Sync, F3: Sync, F4: Sync, B: Sync,

§

impl<'a, T, I, B, F1, F2, F3, F4> Unpin for JoinWrite<'a, T, I, B, F1, F2, F3, F4>
where I: Unpin, F1: Unpin, F2: Unpin, F3: Unpin, F4: Unpin,

§

impl<'a, T, I, B, F1, F2, F3, F4> UnsafeUnpin for JoinWrite<'a, T, I, B, F1, F2, F3, F4>

§

impl<'a, T, I, B, F1, F2, F3, F4> !UnwindSafe for JoinWrite<'a, T, I, B, F1, F2, F3, F4>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.