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

The corresponding fallible write function wrapper.

Required methods

Returns the wrapped function.

Implementors