Struct custom_print::ConcatTryWriter [−][src]
pub struct ConcatTryWriter<F1>(_);
Expand description
A writer that calls write_str
once with a combined string.
Write function can return either ()
or for<T, E>
Result
<T, E>
.
Writer propagates error to the caller if the write function returns Result::Err
.
Implementations
Creates a new ConcatTryWriter
from an object that implements WriteStr
.
Creates a new ConcatTryWriter
with a WriteStr
wrapper
deduced with IntoTryWriteFn
by the closure signature and constructed from it.
Writes a formatted string into this writer, returning any error encountered.
This method is primarily used to interface with the format_args!
macro,
but it is rare that this should explicitly be called.
The write!
macro should be favored to invoke this method instead.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
impl<F1, Output> WriteBytes for ConcatTryWriter<F1> where
F1: WriteBytes,
F1::Output: IntoConcatWriteResult<Output = Output>,
[src]
impl<F1, Output> WriteBytes for ConcatTryWriter<F1> where
F1: WriteBytes,
F1::Output: IntoConcatWriteResult<Output = Output>,
[src]impl<F1, Output> WriteStr for ConcatTryWriter<F1> where
F1: WriteStr,
F1::Output: IntoConcatWriteResult<Output = Output>,
[src]
impl<F1, Output> WriteStr for ConcatTryWriter<F1> where
F1: WriteStr,
F1::Output: IntoConcatWriteResult<Output = Output>,
[src]Auto Trait Implementations
impl<F1> RefUnwindSafe for ConcatTryWriter<F1> where
F1: RefUnwindSafe,
impl<F1> Send for ConcatTryWriter<F1> where
F1: Send,
impl<F1> Sync for ConcatTryWriter<F1> where
F1: Sync,
impl<F1> Unpin for ConcatTryWriter<F1> where
F1: Unpin,
impl<F1> UnwindSafe for ConcatTryWriter<F1> where
F1: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more