pub trait Unwrappable<R> {
    // Required method
    fn unwrap_into(self) -> R;
}
Expand description

A trait that can be R, Result<R>, Option<R>, Result<Option<R>>, or Option<Result<R>> and can unwrap to return R.

Required Methods§

source

fn unwrap_into(self) -> R

Implementations on Foreign Types§

source§

impl<R> Unwrappable<R> for Option<R>

source§

fn unwrap_into(self) -> R

source§

impl<R, E: Debug> Unwrappable<R> for Option<Result<R, E>>

source§

fn unwrap_into(self) -> R

source§

impl<R, E: Debug> Unwrappable<R> for Result<Option<R>, E>

source§

fn unwrap_into(self) -> R

source§

impl<R, E: Debug> Unwrappable<R> for Result<R, E>

source§

fn unwrap_into(self) -> R

Implementors§

source§

impl<R> Unwrappable<R> for R