pub struct IndexedLocation {
pub location: Location,
pub index: usize,
}Expand description
A wrapper that makes Location compatible with R-tree indexing.
Fields§
§location: LocationThe geographic location
index: usizeOptional associated data index
Implementations§
Trait Implementations§
Source§impl Clone for IndexedLocation
impl Clone for IndexedLocation
Source§fn clone(&self) -> IndexedLocation
fn clone(&self) -> IndexedLocation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IndexedLocation
impl Debug for IndexedLocation
Source§impl PointDistance for IndexedLocation
impl PointDistance for IndexedLocation
Source§fn distance_2(&self, point: &[f64; 2]) -> f64
fn distance_2(&self, point: &[f64; 2]) -> f64
Returns the squared distance between an object and a point. Read more
Source§fn contains_point(&self, point: &<Self::Envelope as Envelope>::Point) -> bool
fn contains_point(&self, point: &<Self::Envelope as Envelope>::Point) -> bool
Returns
true if a point is contained within this object. Read moreSource§fn distance_2_if_less_or_equal(
&self,
point: &<Self::Envelope as Envelope>::Point,
max_distance_2: <<Self::Envelope as Envelope>::Point as Point>::Scalar,
) -> Option<<<Self::Envelope as Envelope>::Point as Point>::Scalar>
fn distance_2_if_less_or_equal( &self, point: &<Self::Envelope as Envelope>::Point, max_distance_2: <<Self::Envelope as Envelope>::Point as Point>::Scalar, ) -> Option<<<Self::Envelope as Envelope>::Point as Point>::Scalar>
Returns the squared distance to this object, or
None if the distance
is larger than a given maximum value. Read moreAuto Trait Implementations§
impl Freeze for IndexedLocation
impl RefUnwindSafe for IndexedLocation
impl Send for IndexedLocation
impl Sync for IndexedLocation
impl Unpin for IndexedLocation
impl UnwindSafe for IndexedLocation
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