Expand description
Represents an location in various addressing schemes.
Variants
LatLon((f32, f32))
GPS coordinates
Human(String)
Human-readable address
WFW(String)
3 word code geocode: https://3geonames.org/
XY((f32, f32))
XY coordinates
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Location
impl<'de> Deserialize<'de> for Location
sourcefn 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
impl StructuralPartialEq for Location
Auto Trait Implementations
impl RefUnwindSafe for Location
impl Send for Location
impl Sync for Location
impl Unpin for Location
impl UnwindSafe for Location
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more