pub struct Point {
pub coord: Coordinate,
}Expand description
Point geometry
Fields§
§coord: CoordinateCoordinate of the point
Implementations§
Source§impl Point
impl Point
Sourcepub const fn from_coord(coord: Coordinate) -> Point
pub const fn from_coord(coord: Coordinate) -> Point
Creates a point from a coordinate
Trait Implementations§
Source§impl ContainsPredicate for Point
impl ContainsPredicate for Point
Source§impl CrossesPredicate for Point
impl CrossesPredicate for Point
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 IntersectsPredicate for Point
impl IntersectsPredicate for Point
Source§fn intersects(&self, other: &Self) -> Result<bool>
fn intersects(&self, other: &Self) -> Result<bool>
Tests if this geometry intersects another
Source§impl OverlapsPredicate for Point
impl OverlapsPredicate 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 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 UnsafeUnpin 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