pub enum GeoJsonPoint {
Regular([f32; 2]),
Elevated([f32; 3]),
}
Expand description
Points are [x, y] or [x, y, z]. They may be [longitude, latitude] or [eastings, northings]. Elevation is an optional third number. They are decimal numbers. [6] For example, London (51.5074° North, 0.1278° West) is [-0.1278, 51.5074]
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for GeoJsonPoint
impl Clone for GeoJsonPoint
Source§fn clone(&self) -> GeoJsonPoint
fn clone(&self) -> GeoJsonPoint
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for GeoJsonPoint
impl Debug for GeoJsonPoint
Source§impl<'de> Deserialize<'de> for GeoJsonPoint
impl<'de> Deserialize<'de> for GeoJsonPoint
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 From<Location> for GeoJsonPoint
impl From<Location> for GeoJsonPoint
Source§impl Serialize for GeoJsonPoint
impl Serialize for GeoJsonPoint
impl Copy for GeoJsonPoint
Auto Trait Implementations§
impl Freeze for GeoJsonPoint
impl RefUnwindSafe for GeoJsonPoint
impl Send for GeoJsonPoint
impl Sync for GeoJsonPoint
impl Unpin for GeoJsonPoint
impl UnwindSafe for GeoJsonPoint
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