pub struct RangeTree2D { /* private fields */ }Expand description
A 2D range tree for O(log² n + k) orthogonal range queries.
Implementations§
Source§impl RangeTree2D
impl RangeTree2D
Sourcepub fn query(&self, x_lo: f64, x_hi: f64, y_lo: f64, y_hi: f64) -> Vec<Point2D>
pub fn query(&self, x_lo: f64, x_hi: f64, y_lo: f64, y_hi: f64) -> Vec<Point2D>
Query all points in [x_lo, x_hi] × [y_lo, y_hi].
Auto Trait Implementations§
impl Freeze for RangeTree2D
impl RefUnwindSafe for RangeTree2D
impl Send for RangeTree2D
impl Sync for RangeTree2D
impl Unpin for RangeTree2D
impl UnsafeUnpin for RangeTree2D
impl UnwindSafe for RangeTree2D
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more