Trait custom_print::ExpectIoWriteResult
source · pub trait ExpectIoWriteResult {
// Required method
fn expect_io_write_result(self, buf: &[u8]) -> Result<usize>;
}
Expand description
A helper trait used by IoWriter
write method
to convert wrapped function result to io::Result
with error unwrapping.
Required Methods§
sourcefn expect_io_write_result(self, buf: &[u8]) -> Result<usize>
fn expect_io_write_result(self, buf: &[u8]) -> Result<usize>
Performs the conversion with error unwrapping.