pub trait BestTransactionsFilter: BestTransactions {
    // Provided method
    fn filter<P>(self, predicate: P) -> BestTransactionFilter<Self, P> 
       where P: FnMut(&Self::Item) -> bool,
             Self: Sized { ... }
}
Expand description

A subtrait on the BestTransactions trait that allows to filter transactions.

Provided Methods§

source

fn filter<P>(self, predicate: P) -> BestTransactionFilter<Self, P>
where P: FnMut(&Self::Item) -> bool, Self: Sized,

Creates an iterator which uses a closure to determine if a transaction should be yielded.

Given an element the closure must return true or false. The returned iterator will yield only the elements for which the closure returns true.

Descendant transactions will be skipped.

Implementors§