FallibleBool

Trait FallibleBool 

Source
pub trait FallibleBool: Sealed {
    type Err: Debug;

    // Required method
    fn get(self) -> Result<bool, Self::Err>;
}
Expand description

A generalized fallible boolean result.

Required Associated Types§

Required Methods§

Source

fn get(self) -> Result<bool, Self::Err>

Implementations on Foreign Types§

Source§

impl FallibleBool for Option<bool>

Source§

type Err = ()

Source§

fn get(self) -> Result<bool, ()>

Source§

impl FallibleBool for bool

Source§

type Err = Never

Source§

fn get(self) -> Result<bool, Self::Err>

Source§

impl<E: Debug> FallibleBool for Result<bool, E>

Source§

type Err = E

Source§

fn get(self) -> Result<bool, E>

Implementors§