Skip to main content

ResultVoidErrExt

Trait ResultVoidErrExt 

Source
pub trait ResultVoidErrExt<E>: Sized {
    // Required method
    fn void_unwrap_err(self) -> E;
}
Expand description

Extensions to Result<Void, E>

Required Methods§

Source

fn void_unwrap_err(self) -> E

Get the error out of a wrapper.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<E> ResultVoidErrExt<E> for Result<Void, E>

Source§

fn void_unwrap_err(self) -> E

Get the error out of an always-err Result.

Never panics, since it is statically known to be Err.

Implementors§