pub struct AddressDelta {
pub label: String,
pub delta: f64,
pub latitude: f64,
pub longitude: f64,
}Expand description
Deltas - Measuring the distance between points based upon matching values.
The label field of AddressDelta holds the matching value and the delta
field holds the distance between matching points.
Fields§
§label: StringAddresses match by address label.
delta: f64Distance between points representing the same address.
latitude: f64Reference latitude from the subject address.
longitude: f64Reference longitude from the subject address.
Implementations§
Trait Implementations§
Source§impl Cartesian for AddressDelta
impl Cartesian for AddressDelta
Source§fn y(&self) -> f64
fn y(&self) -> f64
The
y method returns the cartesian Y portion of the projected coordinates of the address.Source§fn x(&self) -> f64
fn x(&self) -> f64
The
x method returns the cartesian X portion of the projected coordinates of the address.Source§fn distance<T: Cartesian + ?Sized>(&self, other: &T) -> f64
fn distance<T: Cartesian + ?Sized>(&self, other: &T) -> f64
The
distance function returns the distance between a point self and another point
other in the same unit as self.Source§fn deltas<T: Cartesian + Address + Clone + Sync + Send, U: Cartesian + Address + Clone + Sync + Send>(
values: &[T],
other: &[U],
min: f64,
) -> AddressDeltas
fn deltas<T: Cartesian + Address + Clone + Sync + Send, U: Cartesian + Address + Clone + Sync + Send>( values: &[T], other: &[U], min: f64, ) -> AddressDeltas
Distance between addresses and other addresses with matching label.
Iterates through records of
others, calculates the distance from self
to matching addresses in others, collects the results into a vector and
returns the results in the records field of a new AddressDeltas struct. Calls
[Point::delta].Source§impl Clone for AddressDelta
impl Clone for AddressDelta
Source§fn clone(&self) -> AddressDelta
fn clone(&self) -> AddressDelta
Returns a copy 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 AddressDelta
impl Debug for AddressDelta
Source§impl Default for AddressDelta
impl Default for AddressDelta
Source§fn default() -> AddressDelta
fn default() -> AddressDelta
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AddressDelta
impl<'de> Deserialize<'de> for AddressDelta
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Geographic for AddressDelta
impl Geographic for AddressDelta
Source§impl PartialEq for AddressDelta
impl PartialEq for AddressDelta
Source§impl PartialOrd for AddressDelta
impl PartialOrd for AddressDelta
Source§impl Serialize for AddressDelta
impl Serialize for AddressDelta
impl StructuralPartialEq for AddressDelta
Auto Trait Implementations§
impl Freeze for AddressDelta
impl RefUnwindSafe for AddressDelta
impl Send for AddressDelta
impl Sync for AddressDelta
impl Unpin for AddressDelta
impl UnwindSafe for AddressDelta
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more