Trait MbrQuery

Source
pub trait MbrQuery<P: FP, const DIM: usize, LG, T, NODE> {
    // Required methods
    fn accept_leaf(&self, leaf: &MbrLeaf<P, DIM, LG, T>) -> bool;
    fn accept_level(&self, level: &NODE) -> bool;
}
Expand description

Query trait for navigating the tree

Required Methods§

Source

fn accept_leaf(&self, leaf: &MbrLeaf<P, DIM, LG, T>) -> bool

Returns true if the leaf matches the query

Source

fn accept_level(&self, level: &NODE) -> bool

Returns true if the level matches the query

Implementors§

Source§

impl<P: FP, const DIM: usize, LG, T, NODE> MbrQuery<P, DIM, LG, T, NODE> for MbrRectQuery<P, DIM>
where LG: MbrLeafGeometry<P, DIM>, NODE: MbrNode<P, DIM>,