Skip to main content

ExpectFmtWriteResult

Trait ExpectFmtWriteResult 

Source
pub trait ExpectFmtWriteResult {
    // Required method
    fn expect_fmt_write_result(self) -> Result;
}
Expand description

A helper trait used by FmtWriter to convert wrapped function result to fmt::Result with error unwrapping.

Required Methods§

Source

fn expect_fmt_write_result(self) -> Result

Performs the conversion with error unwrapping.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl ExpectFmtWriteResult for ()

Source§

impl<E: Debug> ExpectFmtWriteResult for Result<(), E>

Implementors§