Trait likely_stable::LikelyBool[][src]

pub trait LikelyBool: Sized {
    fn then_likely<T, F: FnOnce() -> T>(self, f: F) -> Option<T>;
fn then_unlikely<T, F: FnOnce() -> T>(self, f: F) -> Option<T>; }

Likely trait for bool

likely method suffix means likely true.

Required methods

fn then_likely<T, F: FnOnce() -> T>(self, f: F) -> Option<T>[src]

fn then_unlikely<T, F: FnOnce() -> T>(self, f: F) -> Option<T>[src]

Loading content...

Implementors

impl LikelyBool for bool[src]

Loading content...