Trait spatial::tree::mbr::MbrQuery [] [src]

pub trait MbrQuery<P, DIM, LG, T> where DIM: ArrayLength<P> + ArrayLength<(P, P)> {
    fn accept_leaf(&self, leaf: &MbrLeaf<P, DIM, LG, T>) -> bool;
    fn accept_level(&self, level: &MbrNode<P, DIM, LG, T>) -> bool;
}

Query trait for navigating the tree

Required Methods

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

Returns true if the leaf matches the query

fn accept_level(&self, level: &MbrNode<P, DIM, LG, T>) -> bool

Returns true if the level matches the query

Implementors