[−][src]Struct geom::FindClosest
Fields
geometries: BTreeMap<K, LineString<f64>>
quadtree: QuadTree<K>
Implementations
impl<K> FindClosest<K> where
K: Clone + Ord + Debug,
[src]
K: Clone + Ord + Debug,
pub fn new(bounds: &Bounds) -> FindClosest<K>
[src]
pub fn add(&mut self, key: K, pts: &Vec<Pt2D>)
[src]
pub fn all_close_pts(
&self,
query_pt: Pt2D,
max_dist_away: Distance
) -> Vec<(K, Pt2D, Distance)>
[src]
&self,
query_pt: Pt2D,
max_dist_away: Distance
) -> Vec<(K, Pt2D, Distance)>
pub fn closest_pt(
&self,
query_pt: Pt2D,
max_dist_away: Distance
) -> Option<(K, Pt2D)>
[src]
&self,
query_pt: Pt2D,
max_dist_away: Distance
) -> Option<(K, Pt2D)>
Finds the closest point on the existing geometry to the query pt.
Auto Trait Implementations
impl<K> RefUnwindSafe for FindClosest<K> where
K: RefUnwindSafe,
K: RefUnwindSafe,
impl<K> Send for FindClosest<K> where
K: Send,
K: Send,
impl<K> Sync for FindClosest<K> where
K: Sync,
K: Sync,
impl<K> Unpin for FindClosest<K> where
K: Unpin,
K: Unpin,
impl<K> UnwindSafe for FindClosest<K> where
K: RefUnwindSafe + UnwindSafe,
K: RefUnwindSafe + UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,