pub struct ShapePoint {
pub lon: f64,
pub lat: f64,
}
Expand description
A point in a shape
Fields§
§lon: f64
Longitude
lat: f64
Latitude
Trait Implementations§
Source§impl Clone for ShapePoint
impl Clone for ShapePoint
Source§fn clone(&self) -> ShapePoint
fn clone(&self) -> ShapePoint
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 ShapePoint
impl Debug for ShapePoint
Source§impl<'de> Deserialize<'de> for ShapePoint
impl<'de> Deserialize<'de> for ShapePoint
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<&ShapePoint> for Point
impl From<&ShapePoint> for Point
Source§fn from(p: &ShapePoint) -> Self
fn from(p: &ShapePoint) -> Self
Converts to this type from the input type.
Source§impl From<(f32, f32)> for ShapePoint
impl From<(f32, f32)> for ShapePoint
Source§fn from((lon, lat): Coordinate) -> Self
fn from((lon, lat): Coordinate) -> Self
Converts to this type from the input type.
Source§impl From<ShapePoint> for Coordinate
impl From<ShapePoint> for Coordinate
Source§fn from(p: ShapePoint) -> Self
fn from(p: ShapePoint) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ShapePoint
impl PartialEq for ShapePoint
Source§impl Serialize for ShapePoint
impl Serialize for ShapePoint
impl StructuralPartialEq for ShapePoint
Auto Trait Implementations§
impl Freeze for ShapePoint
impl RefUnwindSafe for ShapePoint
impl Send for ShapePoint
impl Sync for ShapePoint
impl Unpin for ShapePoint
impl UnwindSafe for ShapePoint
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