Skip to main content

BoolExt

Trait BoolExt 

Source
pub trait BoolExt
where Self: Future<Output = bool> + Send,
{ // Required methods fn or<B>(self, b: B) -> impl Future<Output = bool> + Send where B: Future<Output = bool> + Send + Unpin, Self: Sized + Unpin; fn and<B>(self, b: B) -> impl Future<Output = bool> + Send where B: Future<Output = bool> + Send, Self: Sized; fn and2<B, C>(self, b: B, c: C) -> impl Future<Output = bool> + Send where B: Future<Output = bool> + Send, C: Future<Output = bool> + Send, Self: Sized; fn and3<B, C, D>( self, b: B, c: C, d: D, ) -> impl Future<Output = bool> + Send where B: Future<Output = bool> + Send, C: Future<Output = bool> + Send, D: Future<Output = bool> + Send, Self: Sized; }

Required Methods§

Source

fn or<B>(self, b: B) -> impl Future<Output = bool> + Send
where B: Future<Output = bool> + Send + Unpin, Self: Sized + Unpin,

Source

fn and<B>(self, b: B) -> impl Future<Output = bool> + Send
where B: Future<Output = bool> + Send, Self: Sized,

Source

fn and2<B, C>(self, b: B, c: C) -> impl Future<Output = bool> + Send
where B: Future<Output = bool> + Send, C: Future<Output = bool> + Send, Self: Sized,

Source

fn and3<B, C, D>(self, b: B, c: C, d: D) -> impl Future<Output = bool> + Send
where B: Future<Output = bool> + Send, C: Future<Output = bool> + Send, D: Future<Output = bool> + Send, Self: Sized,

Implementors§

Source§

impl<Fut> BoolExt for Fut
where Fut: Future<Output = bool> + Send,