[−][src]Trait tbot::predicates::StatefulPredicateBooleanOperations
Boolean operations on stateful predicates.
Provided methods
fn and<P, PF>(
self,
other: P
) -> Box<dyn Fn(Arc<C>, Arc<S>) -> BoxFuture<'static, bool> + Send + Sync + 'static> where
P: StatefulPredicateBooleanOperations<C, S, PF> + 'static,
PF: Future<Output = bool> + Send,
self,
other: P
) -> Box<dyn Fn(Arc<C>, Arc<S>) -> BoxFuture<'static, bool> + Send + Sync + 'static> where
P: StatefulPredicateBooleanOperations<C, S, PF> + 'static,
PF: Future<Output = bool> + Send,
self(..).await && other(..).await
fn or<P, PF>(
self,
other: P
) -> Box<dyn Fn(Arc<C>, Arc<S>) -> BoxFuture<'static, bool> + Send + Sync + 'static> where
P: StatefulPredicateBooleanOperations<C, S, PF> + 'static,
PF: Future<Output = bool> + Send,
self,
other: P
) -> Box<dyn Fn(Arc<C>, Arc<S>) -> BoxFuture<'static, bool> + Send + Sync + 'static> where
P: StatefulPredicateBooleanOperations<C, S, PF> + 'static,
PF: Future<Output = bool> + Send,
self(..).await || other(..).await
fn xor<P, PF>(
self,
other: P
) -> Box<dyn Fn(Arc<C>, Arc<S>) -> BoxFuture<'static, bool> + Send + Sync + 'static> where
P: StatefulPredicateBooleanOperations<C, S, PF> + 'static,
PF: Future<Output = bool> + Send,
self,
other: P
) -> Box<dyn Fn(Arc<C>, Arc<S>) -> BoxFuture<'static, bool> + Send + Sync + 'static> where
P: StatefulPredicateBooleanOperations<C, S, PF> + 'static,
PF: Future<Output = bool> + Send,
self(..).await != other(..).await
fn not(
self
) -> Box<dyn Fn(Arc<C>, Arc<S>) -> BoxFuture<'static, bool> + Send + Sync + 'static>
self
) -> Box<dyn Fn(Arc<C>, Arc<S>) -> BoxFuture<'static, bool> + Send + Sync + 'static>
!self(..).await
Implementors
impl<C, S, F, T> StatefulPredicateBooleanOperations<C, S, F> for T where
T: Fn(Arc<C>, Arc<S>) -> F + Sized + Send + Sync + 'static,
F: Future<Output = bool> + Send,
C: Send + Sync + 'static,
S: Send + Sync + 'static,
[src]
T: Fn(Arc<C>, Arc<S>) -> F + Sized + Send + Sync + 'static,
F: Future<Output = bool> + Send,
C: Send + Sync + 'static,
S: Send + Sync + 'static,