[][src]Trait condition::Condition

pub trait Condition: Sized {
    fn is(&self, value: bool) -> bool;

    fn is_false(&self) -> bool { ... }
fn is_true(&self) -> bool { ... }
#[must_use] fn option(&self) -> Option<()> { ... }
#[must_use] fn result(&self) -> Result<(), ()> { ... } }

Required methods

fn is(&self, value: bool) -> bool

Checks if the Condition is in the same equivalent state as the given boolean. Everything else regarding a condition can be implemented in these terms

Loading content...

Provided methods

fn is_false(&self) -> bool

fn is_true(&self) -> bool

#[must_use] fn option(&self) -> Option<()>

#[must_use] fn result(&self) -> Result<(), ()>

Loading content...

Implementations on Foreign Types

impl<T> Condition for Option<T>[src]

impl<T, E> Condition for Result<T, E>[src]

impl Condition for bool[src]

Loading content...

Implementors

Loading content...