Skip to main content

Predicate

Trait Predicate 

Source
pub trait Predicate<T> {
    // Required method
    fn eval(&self, item: &T) -> bool;
}
Expand description

Predicate to test if item x is part of set or not

x item to be tested returns true if it’s selected, false if it’s rejected

Required Methods§

Source

fn eval(&self, item: &T) -> bool

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Predicate<Transaction> for FilterDefinition

Source§

fn eval(&self, txn: &Transaction) -> bool

Source§

impl Predicate<Transaction> for NullaryFALSE

Source§

fn eval(&self, _txn: &Transaction) -> bool

Source§

impl Predicate<Transaction> for NullaryTRUE

Source§

fn eval(&self, _txn: &Transaction) -> bool

Source§

impl Predicate<Transaction> for TxnFilter

Actual filtering implementation for TxnFilter

Source§

fn eval(&self, txn: &Transaction) -> bool

Source§

impl Predicate<Transaction> for TxnFilterAND

Source§

fn eval(&self, txn: &Transaction) -> bool

Source§

impl Predicate<Transaction> for TxnFilterBBoxLatLon

Source§

fn eval(&self, txn: &Transaction) -> bool

Source§

impl Predicate<Transaction> for TxnFilterBBoxLatLonAlt

Source§

fn eval(&self, txn: &Transaction) -> bool

Source§

impl Predicate<Transaction> for TxnFilterNOT

Source§

fn eval(&self, txn: &Transaction) -> bool

Source§

impl Predicate<Transaction> for TxnFilterOR

Source§

fn eval(&self, txn: &Transaction) -> bool

Source§

impl Predicate<Transaction> for TxnFilterPostingAccount

Source§

fn eval(&self, txn: &Transaction) -> bool

Source§

impl Predicate<Transaction> for TxnFilterPostingAmountEqual

Source§

fn eval(&self, txn: &Transaction) -> bool

Source§

impl Predicate<Transaction> for TxnFilterPostingAmountGreater

Source§

fn eval(&self, txn: &Transaction) -> bool

Source§

impl Predicate<Transaction> for TxnFilterPostingAmountLess

Source§

fn eval(&self, txn: &Transaction) -> bool

Source§

impl Predicate<Transaction> for TxnFilterPostingComment

Source§

fn eval(&self, txn: &Transaction) -> bool

Source§

impl Predicate<Transaction> for TxnFilterPostingCommodity

Source§

fn eval(&self, txn: &Transaction) -> bool

Source§

impl Predicate<Transaction> for TxnFilterTxnCode

Source§

fn eval(&self, txn: &Transaction) -> bool

Source§

impl Predicate<Transaction> for TxnFilterTxnComments

Source§

fn eval(&self, txn: &Transaction) -> bool

Source§

impl Predicate<Transaction> for TxnFilterTxnDescription

Source§

fn eval(&self, txn: &Transaction) -> bool

Source§

impl Predicate<Transaction> for TxnFilterTxnExtId

Source§

fn eval(&self, txn: &Transaction) -> bool

Source§

impl Predicate<Transaction> for TxnFilterTxnTSBegin

Source§

fn eval(&self, txn: &Transaction) -> bool

Source§

impl Predicate<Transaction> for TxnFilterTxnTSEnd

Source§

fn eval(&self, txn: &Transaction) -> bool

Source§

impl Predicate<Transaction> for TxnFilterTxnTags

Source§

fn eval(&self, txn: &Transaction) -> bool

Source§

impl Predicate<Transaction> for TxnFilterTxnUUID

Source§

fn eval(&self, txn: &Transaction) -> bool

Implementors§