Trait void::ResultVoidErrExt
source · [−]pub trait ResultVoidErrExt<E>: Sized {
fn void_unwrap_err(self) -> E;
}
Expand description
Extensions to Result<Void, E>
Required Methods
sourcefn void_unwrap_err(self) -> E
fn void_unwrap_err(self) -> E
Get the error out of a wrapper.
Implementations on Foreign Types
sourceimpl<E> ResultVoidErrExt<E> for Result<Void, E>
impl<E> ResultVoidErrExt<E> for Result<Void, E>
sourcefn void_unwrap_err(self) -> E
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.