Enum spatial::tree::mbr::MbrRectQuery [] [src]

pub enum MbrRectQuery<P, DIM> where DIM: ArrayLength<P> + ArrayLength<(P, P)> {
    ContainedBy(Rect<P, DIM>),
    Overlaps(Rect<P, DIM>),
}

Rect based query

Variants

ContainedBy(Rect<P, DIM>)

Matching leaves are ones that are completely contained by this rect

Overlaps(Rect<P, DIM>)

Matching leaves are ones that overlap this rect

Trait Implementations

impl<P: Clone, DIM: Clone> Clone for MbrRectQuery<P, DIM> where DIM: ArrayLength<P> + ArrayLength<(P, P)>
[src]

fn clone(&self) -> MbrRectQuery<P, DIM>

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl<P: Debug, DIM: Debug> Debug for MbrRectQuery<P, DIM> where DIM: ArrayLength<P> + ArrayLength<(P, P)>
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl<P, DIM, LG, T> MbrQuery<P, DIM, LG, T> for MbrRectQuery<P, DIM> where P: Float + Signed + Bounded + MulAssign + AddAssign + ToPrimitive + FromPrimitive + Copy + Debug + Default, DIM: ArrayLength<P> + ArrayLength<(P, P)>, LG: MbrLeafGeometry<P, DIM>
[src]

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