[][src]Trait proceed::Proceed

pub trait Proceed {
    fn proceed(&mut self) -> Option<bool>;

    fn proceed_or(&mut self, default: bool) -> bool { ... }
fn proceed_or_else<F: FnOnce() -> bool>(&mut self, f: F) -> bool { ... } }

The abstraction around checking whether to proceed or not.

Required methods

fn proceed(&mut self) -> Option<bool>

Check if the input allows for proceeding. If the input is empty, we return None.

Loading content...

Provided methods

fn proceed_or(&mut self, default: bool) -> bool

Check if the input allows for proceeding. If the input is empty, return the given default.

fn proceed_or_else<F: FnOnce() -> bool>(&mut self, f: F) -> bool

Check if the input allows for proceeding. If the input is empty, then run the given function.

Loading content...

Implementors

Loading content...