pub trait InfalliableFormatResultExt<T, S> {
// Required method
fn forward<F>(self) -> Result<T, ChiselError<F, S>>;
}Expand description
Extension trait for InfallibleFormatResult.
Required Methods§
Sourcefn forward<F>(self) -> Result<T, ChiselError<F, S>>
fn forward<F>(self) -> Result<T, ChiselError<F, S>>
Converts an InfallibleFormatResult into an arbitrary-format ChiselResult.
This is basically a small hack to allow easy error propagation,
as ChiselError<F, S> cannot implement From<ChiselError<Infallible, S>>.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.