Trait void::ResultVoidExt

source ·
pub trait ResultVoidExt<T>: Sized {
    // Required method
    fn void_unwrap(self) -> T;
}
Expand description

Extensions to Result<T, Void>

Required Methods§

source

fn void_unwrap(self) -> T

Get the value out of a wrapper.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T> ResultVoidExt<T> for Result<T, Void>

source§

fn void_unwrap(self) -> T

Get the value out of an always-ok Result.

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

Implementors§