Trait custom_print::IntoTryWriteFn [−][src]
pub trait IntoTryWriteFn<Ts> { type TryWriteFn; fn into_try_write_fn(self) -> Self::TryWriteFn; }
Expand description
A trait used to inference type of fallible write closure wrapper.
This trait used by FmtTryWriter
, ConcatTryWriter
and IoTryWriter
.
Both IntoWriteFn
and IntoTryWriteFn
traits provides the same wrappers for
closures with *const u8
, usize
, &[u8]
, &str
and String
arguments.
This variant uses non-panicking versions for
closures with &CStr
, CString
, and *const c_char
arguments.
Associated Types
type TryWriteFn
[src]
type TryWriteFn
[src]The corresponding fallible write function wrapper.
Required methods
fn into_try_write_fn(self) -> Self::TryWriteFn
[src]
fn into_try_write_fn(self) -> Self::TryWriteFn
[src]Returns the wrapped function.
Implementors
type TryWriteFn = WriteStrFn<F, R>
type TryWriteFn = TryWriteCStrFn<F, R>
type TryWriteFn = TryWriteCCharPtrFn<F, R>
type TryWriteFn = WritePtrLenFn<F, R>
type TryWriteFn = WriteBytesFn<F, R>
type TryWriteFn = WriteLenPtrFn<F, R>
type TryWriteFn = WriteStringFn<F, R>
type TryWriteFn = TryWriteCStringFn<F, R>