pub trait QueryPredicate<T>where
T: Indexable,{
// Required methods
fn matches(&self, value: &T) -> bool;
fn could_match(&self, node: &Bounds) -> bool;
fn covers_all(&self, node: &Bounds) -> bool;
}Expand description
A predicate accepted by Rtree::query_with.
matches decides leaf values. could_match and covers_all are
conservative subtree tests: false from the former prunes a subtree;
true from the latter yields it without further predicate calls.
Required Methods§
Sourcefn could_match(&self, node: &Bounds) -> bool
fn could_match(&self, node: &Bounds) -> bool
Whether a subtree may contain a match.
Sourcefn covers_all(&self, node: &Bounds) -> bool
fn covers_all(&self, node: &Bounds) -> bool
Whether every value in a subtree is guaranteed to match.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".