Skip to main content

Queryable

Trait Queryable 

Source
pub trait Queryable {
    // Required method
    fn matches(&self, doc: &Document) -> bool;
}
Expand description

Trait for objects that can filter documents.

This trait is implemented for closures that take a reference to a FilterBuilder and return a boolean, allowing for a natural filter syntax.

Required Methods§

Source

fn matches(&self, doc: &Document) -> bool

Implementors§

Source§

impl<F> Queryable for F
where F: Fn(&Document) -> bool,