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