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.

Object Safety§

This trait is not object safe.

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§