pub struct BruteScan<'a, P: Point + 'a> { /* private fields */ }Expand description
A point collection where queries are answered via brute-force scans over the whole list.
Points are represented via their indices into the list passed to
new.
Implementations§
Trait Implementations§
Source§impl<'a, P: Point> ListPoints for BruteScan<'a, P>
impl<'a, P: Point> ListPoints for BruteScan<'a, P>
Source§impl<'a, P: Point> RegionQuery for BruteScan<'a, P>
impl<'a, P: Point> RegionQuery for BruteScan<'a, P>
Source§type Neighbours = BruteScanNeighbours<'a, P>
type Neighbours = BruteScanNeighbours<'a, P>
An iterator over the nearby points and their distances of a given one.
Source§fn neighbours(&self, point: &usize, eps: f64) -> BruteScanNeighbours<'a, P> ⓘ
fn neighbours(&self, point: &usize, eps: f64) -> BruteScanNeighbours<'a, P> ⓘ
Return an iterator over points in
self with distance from
point less than or equal to epsilon. Read moreAuto Trait Implementations§
impl<'a, P> Freeze for BruteScan<'a, P>
impl<'a, P> RefUnwindSafe for BruteScan<'a, P>where
P: RefUnwindSafe,
impl<'a, P> Send for BruteScan<'a, P>where
P: Sync,
impl<'a, P> Sync for BruteScan<'a, P>where
P: Sync,
impl<'a, P> Unpin for BruteScan<'a, P>
impl<'a, P> UnwindSafe for BruteScan<'a, P>where
P: RefUnwindSafe,
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