pub struct Point(pub f64, pub f64);Expand description
Definition of a Point. May represent WebMercator Lon-Lat or S2Geometry S-T
Tuple Fields§
§0: f64§1: f64Trait Implementations§
Source§impl<'de> Deserialize<'de> for Point
impl<'de> Deserialize<'de> for Point
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Point, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Point, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<Point> for PointOrPoint3D
impl From<Point> for PointOrPoint3D
Source§fn from(p: Point) -> PointOrPoint3D
fn from(p: Point) -> PointOrPoint3D
Converts to this type from the input type.
Source§impl<M> From<Point> for VectorPoint<M>where
M: Clone,
impl<M> From<Point> for VectorPoint<M>where
M: Clone,
Source§fn from(p: Point) -> VectorPoint<M>
fn from(p: Point) -> VectorPoint<M>
Converts to this type from the input type.
Source§impl Interpolate for Point
impl Interpolate for Point
Source§impl Ord for Point
impl Ord for Point
Source§impl PartialOrd for Point
impl PartialOrd for Point
Source§impl Serialize for Point
impl Serialize for Point
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for Point
impl Eq for Point
impl StructuralPartialEq for Point
Auto Trait Implementations§
impl Freeze for Point
impl RefUnwindSafe for Point
impl Send for Point
impl Sync for Point
impl Unpin for Point
impl UnwindSafe for Point
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