Trait custom_print::IntoWriteFn
source · pub trait IntoWriteFn<Ts> {
type WriteFn;
// Required method
fn into_write_fn(self) -> Self::WriteFn;
}
Expand description
A trait used to inference type of write closure wrapper.
This trait used by FmtWriter
, ConcatWriter
and IoWriter
.
Both IntoWriteFn
and IntoTryWriteFn
traits provides the same wrappers for
closures with *const u8
, usize
, &[u8]
, &str
and String
arguments.
This variant uses panicking versions for
closures with &CStr
, CString
, and *const c_char
arguments,
for a “fail fast” approach.
Required Associated Types§
Required Methods§
sourcefn into_write_fn(self) -> Self::WriteFn
fn into_write_fn(self) -> Self::WriteFn
Returns the wrapped function.