pub struct Zoint<'a> { /* private fields */ }Implementations§
Source§impl<'a> Zoint<'a>
impl<'a> Zoint<'a>
pub fn new(coord: &'a Coord) -> Self
pub fn from_bytes(data: &'a [u8]) -> Self
pub fn write_from_geometry( writer: &mut impl Write, geometry: &Point<f64>, ) -> Result<(), Error>
pub fn coord(&self) -> &'a Coord
pub fn lat(&self) -> f64
pub fn lng(&self) -> f64
pub fn x(&self) -> f64
pub fn y(&self) -> f64
pub fn to_geo(&self) -> Point<f64>
Trait Implementations§
Source§impl<'a> RelationBetweenShapes<Zerometry<'a>> for Zoint<'a>
impl<'a> RelationBetweenShapes<Zerometry<'a>> for Zoint<'a>
fn relation( &self, other: &Zerometry<'a>, relation: InputRelation, ) -> OutputRelation
fn all_relation(&self, other: &Other) -> OutputRelation
fn any_relation(&self, other: &Other) -> OutputRelation
fn contains(&self, other: &Other) -> bool
fn strict_contains(&self, other: &Other) -> bool
fn contained(&self, other: &Other) -> bool
fn strict_contained(&self, other: &Other) -> bool
fn intersects(&self, other: &Other) -> bool
fn disjoint(&self, other: &Other) -> bool
Source§impl<'a> RelationBetweenShapes<Zine<'a>> for Zoint<'a>
impl<'a> RelationBetweenShapes<Zine<'a>> for Zoint<'a>
fn relation(&self, _other: &Zine<'a>, relation: InputRelation) -> OutputRelation
fn all_relation(&self, other: &Other) -> OutputRelation
fn any_relation(&self, other: &Other) -> OutputRelation
fn contains(&self, other: &Other) -> bool
fn strict_contains(&self, other: &Other) -> bool
fn contained(&self, other: &Other) -> bool
fn strict_contained(&self, other: &Other) -> bool
fn intersects(&self, other: &Other) -> bool
fn disjoint(&self, other: &Other) -> bool
Source§impl<'a> RelationBetweenShapes<Zoint<'a>> for Zerometry<'a>
impl<'a> RelationBetweenShapes<Zoint<'a>> for Zerometry<'a>
fn relation(&self, other: &Zoint<'_>, relation: InputRelation) -> OutputRelation
fn all_relation(&self, other: &Other) -> OutputRelation
fn any_relation(&self, other: &Other) -> OutputRelation
fn contains(&self, other: &Other) -> bool
fn strict_contains(&self, other: &Other) -> bool
fn contained(&self, other: &Other) -> bool
fn strict_contained(&self, other: &Other) -> bool
fn intersects(&self, other: &Other) -> bool
fn disjoint(&self, other: &Other) -> bool
Source§impl<'a> RelationBetweenShapes<Zoint<'a>> for Zine<'a>
impl<'a> RelationBetweenShapes<Zoint<'a>> for Zine<'a>
fn relation( &self, _other: &Zoint<'a>, relation: InputRelation, ) -> OutputRelation
fn all_relation(&self, other: &Other) -> OutputRelation
fn any_relation(&self, other: &Other) -> OutputRelation
fn contains(&self, other: &Other) -> bool
fn strict_contains(&self, other: &Other) -> bool
fn contained(&self, other: &Other) -> bool
fn strict_contained(&self, other: &Other) -> bool
fn intersects(&self, other: &Other) -> bool
fn disjoint(&self, other: &Other) -> bool
Source§impl<'a> RelationBetweenShapes<Zoint<'a>> for Zoint<'a>
impl<'a> RelationBetweenShapes<Zoint<'a>> for Zoint<'a>
fn relation( &self, _other: &Zoint<'a>, relation: InputRelation, ) -> OutputRelation
fn all_relation(&self, other: &Other) -> OutputRelation
fn any_relation(&self, other: &Other) -> OutputRelation
fn contains(&self, other: &Other) -> bool
fn strict_contains(&self, other: &Other) -> bool
fn contained(&self, other: &Other) -> bool
fn strict_contained(&self, other: &Other) -> bool
fn intersects(&self, other: &Other) -> bool
fn disjoint(&self, other: &Other) -> bool
Source§impl<'a> RelationBetweenShapes<Zoint<'a>> for Zollection<'a>
impl<'a> RelationBetweenShapes<Zoint<'a>> for Zollection<'a>
fn relation(&self, other: &Zoint<'a>, relation: InputRelation) -> OutputRelation
fn all_relation(&self, other: &Other) -> OutputRelation
fn any_relation(&self, other: &Other) -> OutputRelation
fn contains(&self, other: &Other) -> bool
fn strict_contains(&self, other: &Other) -> bool
fn contained(&self, other: &Other) -> bool
fn strict_contained(&self, other: &Other) -> bool
fn intersects(&self, other: &Other) -> bool
fn disjoint(&self, other: &Other) -> bool
Source§impl<'a> RelationBetweenShapes<Zoint<'a>> for Zolygon<'a>
impl<'a> RelationBetweenShapes<Zoint<'a>> for Zolygon<'a>
fn relation(&self, other: &Zoint<'a>, relation: InputRelation) -> OutputRelation
fn all_relation(&self, other: &Other) -> OutputRelation
fn any_relation(&self, other: &Other) -> OutputRelation
fn contains(&self, other: &Other) -> bool
fn strict_contains(&self, other: &Other) -> bool
fn contained(&self, other: &Other) -> bool
fn strict_contained(&self, other: &Other) -> bool
fn intersects(&self, other: &Other) -> bool
fn disjoint(&self, other: &Other) -> bool
Source§impl<'a> RelationBetweenShapes<Zoint<'a>> for ZultiLines<'a>
impl<'a> RelationBetweenShapes<Zoint<'a>> for ZultiLines<'a>
fn relation( &self, _other: &Zoint<'_>, relation: InputRelation, ) -> OutputRelation
fn all_relation(&self, other: &Other) -> OutputRelation
fn any_relation(&self, other: &Other) -> OutputRelation
fn contains(&self, other: &Other) -> bool
fn strict_contains(&self, other: &Other) -> bool
fn contained(&self, other: &Other) -> bool
fn strict_contained(&self, other: &Other) -> bool
fn intersects(&self, other: &Other) -> bool
fn disjoint(&self, other: &Other) -> bool
Source§impl<'a> RelationBetweenShapes<Zoint<'a>> for ZultiPoints<'a>
impl<'a> RelationBetweenShapes<Zoint<'a>> for ZultiPoints<'a>
fn relation( &self, _other: &Zoint<'a>, relation: InputRelation, ) -> OutputRelation
fn all_relation(&self, other: &Other) -> OutputRelation
fn any_relation(&self, other: &Other) -> OutputRelation
fn contains(&self, other: &Other) -> bool
fn strict_contains(&self, other: &Other) -> bool
fn contained(&self, other: &Other) -> bool
fn strict_contained(&self, other: &Other) -> bool
fn intersects(&self, other: &Other) -> bool
fn disjoint(&self, other: &Other) -> bool
Source§impl<'a> RelationBetweenShapes<Zoint<'a>> for ZultiPolygons<'a>
impl<'a> RelationBetweenShapes<Zoint<'a>> for ZultiPolygons<'a>
fn relation(&self, other: &Zoint<'_>, relation: InputRelation) -> OutputRelation
fn all_relation(&self, other: &Other) -> OutputRelation
fn any_relation(&self, other: &Other) -> OutputRelation
fn contains(&self, other: &Other) -> bool
fn strict_contains(&self, other: &Other) -> bool
fn contained(&self, other: &Other) -> bool
fn strict_contained(&self, other: &Other) -> bool
fn intersects(&self, other: &Other) -> bool
fn disjoint(&self, other: &Other) -> bool
Source§impl<'a> RelationBetweenShapes<Zollection<'a>> for Zoint<'a>
impl<'a> RelationBetweenShapes<Zollection<'a>> for Zoint<'a>
fn relation( &self, other: &Zollection<'a>, relation: InputRelation, ) -> OutputRelation
fn all_relation(&self, other: &Other) -> OutputRelation
fn any_relation(&self, other: &Other) -> OutputRelation
fn contains(&self, other: &Other) -> bool
fn strict_contains(&self, other: &Other) -> bool
fn contained(&self, other: &Other) -> bool
fn strict_contained(&self, other: &Other) -> bool
fn intersects(&self, other: &Other) -> bool
fn disjoint(&self, other: &Other) -> bool
Source§impl<'a> RelationBetweenShapes<Zolygon<'a>> for Zoint<'a>
impl<'a> RelationBetweenShapes<Zolygon<'a>> for Zoint<'a>
fn relation( &self, other: &Zolygon<'a>, relation: InputRelation, ) -> OutputRelation
fn all_relation(&self, other: &Other) -> OutputRelation
fn any_relation(&self, other: &Other) -> OutputRelation
fn contains(&self, other: &Other) -> bool
fn strict_contains(&self, other: &Other) -> bool
fn contained(&self, other: &Other) -> bool
fn strict_contained(&self, other: &Other) -> bool
fn intersects(&self, other: &Other) -> bool
fn disjoint(&self, other: &Other) -> bool
Source§impl<'a> RelationBetweenShapes<ZultiLines<'a>> for Zoint<'a>
impl<'a> RelationBetweenShapes<ZultiLines<'a>> for Zoint<'a>
fn relation( &self, _other: &ZultiLines<'a>, relation: InputRelation, ) -> OutputRelation
fn all_relation(&self, other: &Other) -> OutputRelation
fn any_relation(&self, other: &Other) -> OutputRelation
fn contains(&self, other: &Other) -> bool
fn strict_contains(&self, other: &Other) -> bool
fn contained(&self, other: &Other) -> bool
fn strict_contained(&self, other: &Other) -> bool
fn intersects(&self, other: &Other) -> bool
fn disjoint(&self, other: &Other) -> bool
Source§impl<'a> RelationBetweenShapes<ZultiPoints<'a>> for Zoint<'a>
impl<'a> RelationBetweenShapes<ZultiPoints<'a>> for Zoint<'a>
fn relation( &self, _other: &ZultiPoints<'a>, relation: InputRelation, ) -> OutputRelation
fn all_relation(&self, other: &Other) -> OutputRelation
fn any_relation(&self, other: &Other) -> OutputRelation
fn contains(&self, other: &Other) -> bool
fn strict_contains(&self, other: &Other) -> bool
fn contained(&self, other: &Other) -> bool
fn strict_contained(&self, other: &Other) -> bool
fn intersects(&self, other: &Other) -> bool
fn disjoint(&self, other: &Other) -> bool
Source§impl<'a> RelationBetweenShapes<ZultiPolygons<'a>> for Zoint<'a>
impl<'a> RelationBetweenShapes<ZultiPolygons<'a>> for Zoint<'a>
fn relation( &self, other: &ZultiPolygons<'a>, relation: InputRelation, ) -> OutputRelation
fn all_relation(&self, other: &Other) -> OutputRelation
fn any_relation(&self, other: &Other) -> OutputRelation
fn contains(&self, other: &Other) -> bool
fn strict_contains(&self, other: &Other) -> bool
fn contained(&self, other: &Other) -> bool
fn strict_contained(&self, other: &Other) -> bool
fn intersects(&self, other: &Other) -> bool
fn disjoint(&self, other: &Other) -> bool
impl<'a> Copy for Zoint<'a>
Auto Trait Implementations§
impl<'a> Freeze for Zoint<'a>
impl<'a> RefUnwindSafe for Zoint<'a>
impl<'a> Send for Zoint<'a>
impl<'a> Sync for Zoint<'a>
impl<'a> Unpin for Zoint<'a>
impl<'a> UnwindSafe for Zoint<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more