pub trait IntoTryWriteFn<Ts> {
type TryWriteFn;
// Required method
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.
Required Associated Types§
Sourcetype TryWriteFn
type TryWriteFn
The corresponding fallible write function wrapper.
Required Methods§
Sourcefn into_try_write_fn(self) -> Self::TryWriteFn
fn into_try_write_fn(self) -> Self::TryWriteFn
Returns the wrapped function.