pub trait ResultVoidExt<T>: Sized {
// Required method
fn void_unwrap(self) -> T;
}Expand description
Extensions to Result<T, Void>
Required Methods§
Sourcefn void_unwrap(self) -> T
fn void_unwrap(self) -> T
Get the value 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<T> ResultVoidExt<T> for Result<T, Void>
impl<T> ResultVoidExt<T> for Result<T, Void>
Source§fn void_unwrap(self) -> T
fn void_unwrap(self) -> T
Get the value out of an always-ok Result.
Never panics, since it is statically known to be Ok.