pub struct Zoint<'a> { /* private fields */ }Expand description
Equivalent of a geo_types::Point.
Implementations§
Source§impl<'a> Zoint<'a>
impl<'a> Zoint<'a>
Sourcepub fn new(coord: &'a Coord) -> Self
pub fn new(coord: &'a Coord) -> Self
Create a Zine from its bounding box and coords.
If the bounding box doesn’t properly bound the polygon all the operation will breaks.
Sourcepub unsafe fn from_bytes(data: &'a [u8]) -> Self
pub unsafe fn from_bytes(data: &'a [u8]) -> Self
§Safety
The data must be generated from the Self::write_from_geometry method and be aligned on 64 bits
Sourcepub fn write_from_geometry(
writer: &mut impl Write,
geometry: &Point<f64>,
) -> Result<(), Error>
pub fn write_from_geometry( writer: &mut impl Write, geometry: &Point<f64>, ) -> Result<(), Error>
Convert the specified geo_types::Point to a valid Zoint slice of bytes in the input buffer.
Trait Implementations§
Source§impl<'a> RelationBetweenShapes<Zerometry<'a>> for Zoint<'a>
impl<'a> RelationBetweenShapes<Zerometry<'a>> for Zoint<'a>
Source§fn relation(
&self,
other: &Zerometry<'a>,
relation: InputRelation,
) -> OutputRelation
fn relation( &self, other: &Zerometry<'a>, relation: InputRelation, ) -> OutputRelation
Return the relation between two shapes.
The
InputRelation lets you specify the kind of relation you want to retrieve. Read moreSource§fn all_relation(&self, other: &Other) -> OutputRelation
fn all_relation(&self, other: &Other) -> OutputRelation
Return all relations with no early return.
Source§fn any_relation(&self, other: &Other) -> OutputRelation
fn any_relation(&self, other: &Other) -> OutputRelation
Return the first relation we find with early return.
Source§fn strict_contains(&self, other: &Other) -> bool
fn strict_contains(&self, other: &Other) -> bool
Return
true if Self strictly contains Other.Source§fn strict_contained(&self, other: &Other) -> bool
fn strict_contained(&self, other: &Other) -> bool
Return
true if Self is strictly contained in Other.Source§fn intersects(&self, other: &Other) -> bool
fn intersects(&self, other: &Other) -> bool
Return
true if Self intersects with Other.Source§impl<'a> RelationBetweenShapes<Zine<'a>> for Zoint<'a>
impl<'a> RelationBetweenShapes<Zine<'a>> for Zoint<'a>
Source§fn relation(&self, _other: &Zine<'a>, relation: InputRelation) -> OutputRelation
fn relation(&self, _other: &Zine<'a>, relation: InputRelation) -> OutputRelation
Return the relation between two shapes.
The
InputRelation lets you specify the kind of relation you want to retrieve. Read moreSource§fn all_relation(&self, other: &Other) -> OutputRelation
fn all_relation(&self, other: &Other) -> OutputRelation
Return all relations with no early return.
Source§fn any_relation(&self, other: &Other) -> OutputRelation
fn any_relation(&self, other: &Other) -> OutputRelation
Return the first relation we find with early return.
Source§fn strict_contains(&self, other: &Other) -> bool
fn strict_contains(&self, other: &Other) -> bool
Return
true if Self strictly contains Other.Source§fn strict_contained(&self, other: &Other) -> bool
fn strict_contained(&self, other: &Other) -> bool
Return
true if Self is strictly contained in Other.Source§fn intersects(&self, other: &Other) -> bool
fn intersects(&self, other: &Other) -> bool
Return
true if Self intersects with Other.Source§impl<'a> RelationBetweenShapes<Zoint<'a>> for Zerometry<'a>
impl<'a> RelationBetweenShapes<Zoint<'a>> for Zerometry<'a>
Source§fn relation(&self, other: &Zoint<'_>, relation: InputRelation) -> OutputRelation
fn relation(&self, other: &Zoint<'_>, relation: InputRelation) -> OutputRelation
Return the relation between two shapes.
The
InputRelation lets you specify the kind of relation you want to retrieve. Read moreSource§fn all_relation(&self, other: &Other) -> OutputRelation
fn all_relation(&self, other: &Other) -> OutputRelation
Return all relations with no early return.
Source§fn any_relation(&self, other: &Other) -> OutputRelation
fn any_relation(&self, other: &Other) -> OutputRelation
Return the first relation we find with early return.
Source§fn strict_contains(&self, other: &Other) -> bool
fn strict_contains(&self, other: &Other) -> bool
Return
true if Self strictly contains Other.Source§fn strict_contained(&self, other: &Other) -> bool
fn strict_contained(&self, other: &Other) -> bool
Return
true if Self is strictly contained in Other.Source§fn intersects(&self, other: &Other) -> bool
fn intersects(&self, other: &Other) -> bool
Return
true if Self intersects with Other.Source§impl<'a> RelationBetweenShapes<Zoint<'a>> for Zine<'a>
impl<'a> RelationBetweenShapes<Zoint<'a>> for Zine<'a>
Source§fn relation(
&self,
_other: &Zoint<'a>,
relation: InputRelation,
) -> OutputRelation
fn relation( &self, _other: &Zoint<'a>, relation: InputRelation, ) -> OutputRelation
Return the relation between two shapes.
The
InputRelation lets you specify the kind of relation you want to retrieve. Read moreSource§fn all_relation(&self, other: &Other) -> OutputRelation
fn all_relation(&self, other: &Other) -> OutputRelation
Return all relations with no early return.
Source§fn any_relation(&self, other: &Other) -> OutputRelation
fn any_relation(&self, other: &Other) -> OutputRelation
Return the first relation we find with early return.
Source§fn strict_contains(&self, other: &Other) -> bool
fn strict_contains(&self, other: &Other) -> bool
Return
true if Self strictly contains Other.Source§fn strict_contained(&self, other: &Other) -> bool
fn strict_contained(&self, other: &Other) -> bool
Return
true if Self is strictly contained in Other.Source§fn intersects(&self, other: &Other) -> bool
fn intersects(&self, other: &Other) -> bool
Return
true if Self intersects with Other.Source§impl<'a> RelationBetweenShapes<Zoint<'a>> for Zoint<'a>
impl<'a> RelationBetweenShapes<Zoint<'a>> for Zoint<'a>
Source§fn relation(
&self,
_other: &Zoint<'a>,
relation: InputRelation,
) -> OutputRelation
fn relation( &self, _other: &Zoint<'a>, relation: InputRelation, ) -> OutputRelation
Return the relation between two shapes.
The
InputRelation lets you specify the kind of relation you want to retrieve. Read moreSource§fn all_relation(&self, other: &Other) -> OutputRelation
fn all_relation(&self, other: &Other) -> OutputRelation
Return all relations with no early return.
Source§fn any_relation(&self, other: &Other) -> OutputRelation
fn any_relation(&self, other: &Other) -> OutputRelation
Return the first relation we find with early return.
Source§fn strict_contains(&self, other: &Other) -> bool
fn strict_contains(&self, other: &Other) -> bool
Return
true if Self strictly contains Other.Source§fn strict_contained(&self, other: &Other) -> bool
fn strict_contained(&self, other: &Other) -> bool
Return
true if Self is strictly contained in Other.Source§fn intersects(&self, other: &Other) -> bool
fn intersects(&self, other: &Other) -> bool
Return
true if Self intersects with Other.Source§impl<'a> RelationBetweenShapes<Zoint<'a>> for Zollection<'a>
impl<'a> RelationBetweenShapes<Zoint<'a>> for Zollection<'a>
Source§fn relation(&self, other: &Zoint<'a>, relation: InputRelation) -> OutputRelation
fn relation(&self, other: &Zoint<'a>, relation: InputRelation) -> OutputRelation
Return the relation between two shapes.
The
InputRelation lets you specify the kind of relation you want to retrieve. Read moreSource§fn all_relation(&self, other: &Other) -> OutputRelation
fn all_relation(&self, other: &Other) -> OutputRelation
Return all relations with no early return.
Source§fn any_relation(&self, other: &Other) -> OutputRelation
fn any_relation(&self, other: &Other) -> OutputRelation
Return the first relation we find with early return.
Source§fn strict_contains(&self, other: &Other) -> bool
fn strict_contains(&self, other: &Other) -> bool
Return
true if Self strictly contains Other.Source§fn strict_contained(&self, other: &Other) -> bool
fn strict_contained(&self, other: &Other) -> bool
Return
true if Self is strictly contained in Other.Source§fn intersects(&self, other: &Other) -> bool
fn intersects(&self, other: &Other) -> bool
Return
true if Self intersects with Other.Source§impl<'a> RelationBetweenShapes<Zoint<'a>> for Zolygon<'a>
impl<'a> RelationBetweenShapes<Zoint<'a>> for Zolygon<'a>
Source§fn relation(&self, other: &Zoint<'a>, relation: InputRelation) -> OutputRelation
fn relation(&self, other: &Zoint<'a>, relation: InputRelation) -> OutputRelation
Return the relation between two shapes.
The
InputRelation lets you specify the kind of relation you want to retrieve. Read moreSource§fn all_relation(&self, other: &Other) -> OutputRelation
fn all_relation(&self, other: &Other) -> OutputRelation
Return all relations with no early return.
Source§fn any_relation(&self, other: &Other) -> OutputRelation
fn any_relation(&self, other: &Other) -> OutputRelation
Return the first relation we find with early return.
Source§fn strict_contains(&self, other: &Other) -> bool
fn strict_contains(&self, other: &Other) -> bool
Return
true if Self strictly contains Other.Source§fn strict_contained(&self, other: &Other) -> bool
fn strict_contained(&self, other: &Other) -> bool
Return
true if Self is strictly contained in Other.Source§fn intersects(&self, other: &Other) -> bool
fn intersects(&self, other: &Other) -> bool
Return
true if Self intersects with Other.Source§impl<'a> RelationBetweenShapes<Zoint<'a>> for ZultiLines<'a>
impl<'a> RelationBetweenShapes<Zoint<'a>> for ZultiLines<'a>
Source§fn relation(
&self,
_other: &Zoint<'_>,
relation: InputRelation,
) -> OutputRelation
fn relation( &self, _other: &Zoint<'_>, relation: InputRelation, ) -> OutputRelation
Return the relation between two shapes.
The
InputRelation lets you specify the kind of relation you want to retrieve. Read moreSource§fn all_relation(&self, other: &Other) -> OutputRelation
fn all_relation(&self, other: &Other) -> OutputRelation
Return all relations with no early return.
Source§fn any_relation(&self, other: &Other) -> OutputRelation
fn any_relation(&self, other: &Other) -> OutputRelation
Return the first relation we find with early return.
Source§fn strict_contains(&self, other: &Other) -> bool
fn strict_contains(&self, other: &Other) -> bool
Return
true if Self strictly contains Other.Source§fn strict_contained(&self, other: &Other) -> bool
fn strict_contained(&self, other: &Other) -> bool
Return
true if Self is strictly contained in Other.Source§fn intersects(&self, other: &Other) -> bool
fn intersects(&self, other: &Other) -> bool
Return
true if Self intersects with Other.Source§impl<'a> RelationBetweenShapes<Zoint<'a>> for ZultiPoints<'a>
impl<'a> RelationBetweenShapes<Zoint<'a>> for ZultiPoints<'a>
Source§fn relation(
&self,
_other: &Zoint<'a>,
relation: InputRelation,
) -> OutputRelation
fn relation( &self, _other: &Zoint<'a>, relation: InputRelation, ) -> OutputRelation
Return the relation between two shapes.
The
InputRelation lets you specify the kind of relation you want to retrieve. Read moreSource§fn all_relation(&self, other: &Other) -> OutputRelation
fn all_relation(&self, other: &Other) -> OutputRelation
Return all relations with no early return.
Source§fn any_relation(&self, other: &Other) -> OutputRelation
fn any_relation(&self, other: &Other) -> OutputRelation
Return the first relation we find with early return.
Source§fn strict_contains(&self, other: &Other) -> bool
fn strict_contains(&self, other: &Other) -> bool
Return
true if Self strictly contains Other.Source§fn strict_contained(&self, other: &Other) -> bool
fn strict_contained(&self, other: &Other) -> bool
Return
true if Self is strictly contained in Other.Source§fn intersects(&self, other: &Other) -> bool
fn intersects(&self, other: &Other) -> bool
Return
true if Self intersects with Other.Source§impl<'a> RelationBetweenShapes<Zoint<'a>> for ZultiPolygons<'a>
impl<'a> RelationBetweenShapes<Zoint<'a>> for ZultiPolygons<'a>
Source§fn relation(&self, other: &Zoint<'_>, relation: InputRelation) -> OutputRelation
fn relation(&self, other: &Zoint<'_>, relation: InputRelation) -> OutputRelation
Return the relation between two shapes.
The
InputRelation lets you specify the kind of relation you want to retrieve. Read moreSource§fn all_relation(&self, other: &Other) -> OutputRelation
fn all_relation(&self, other: &Other) -> OutputRelation
Return all relations with no early return.
Source§fn any_relation(&self, other: &Other) -> OutputRelation
fn any_relation(&self, other: &Other) -> OutputRelation
Return the first relation we find with early return.
Source§fn strict_contains(&self, other: &Other) -> bool
fn strict_contains(&self, other: &Other) -> bool
Return
true if Self strictly contains Other.Source§fn strict_contained(&self, other: &Other) -> bool
fn strict_contained(&self, other: &Other) -> bool
Return
true if Self is strictly contained in Other.Source§fn intersects(&self, other: &Other) -> bool
fn intersects(&self, other: &Other) -> bool
Return
true if Self intersects with Other.Source§impl<'a> RelationBetweenShapes<Zollection<'a>> for Zoint<'a>
impl<'a> RelationBetweenShapes<Zollection<'a>> for Zoint<'a>
Source§fn relation(
&self,
other: &Zollection<'a>,
relation: InputRelation,
) -> OutputRelation
fn relation( &self, other: &Zollection<'a>, relation: InputRelation, ) -> OutputRelation
Return the relation between two shapes.
The
InputRelation lets you specify the kind of relation you want to retrieve. Read moreSource§fn all_relation(&self, other: &Other) -> OutputRelation
fn all_relation(&self, other: &Other) -> OutputRelation
Return all relations with no early return.
Source§fn any_relation(&self, other: &Other) -> OutputRelation
fn any_relation(&self, other: &Other) -> OutputRelation
Return the first relation we find with early return.
Source§fn strict_contains(&self, other: &Other) -> bool
fn strict_contains(&self, other: &Other) -> bool
Return
true if Self strictly contains Other.Source§fn strict_contained(&self, other: &Other) -> bool
fn strict_contained(&self, other: &Other) -> bool
Return
true if Self is strictly contained in Other.Source§fn intersects(&self, other: &Other) -> bool
fn intersects(&self, other: &Other) -> bool
Return
true if Self intersects with Other.Source§impl<'a> RelationBetweenShapes<Zolygon<'a>> for Zoint<'a>
impl<'a> RelationBetweenShapes<Zolygon<'a>> for Zoint<'a>
Source§fn relation(
&self,
other: &Zolygon<'a>,
relation: InputRelation,
) -> OutputRelation
fn relation( &self, other: &Zolygon<'a>, relation: InputRelation, ) -> OutputRelation
Return the relation between two shapes.
The
InputRelation lets you specify the kind of relation you want to retrieve. Read moreSource§fn all_relation(&self, other: &Other) -> OutputRelation
fn all_relation(&self, other: &Other) -> OutputRelation
Return all relations with no early return.
Source§fn any_relation(&self, other: &Other) -> OutputRelation
fn any_relation(&self, other: &Other) -> OutputRelation
Return the first relation we find with early return.
Source§fn strict_contains(&self, other: &Other) -> bool
fn strict_contains(&self, other: &Other) -> bool
Return
true if Self strictly contains Other.Source§fn strict_contained(&self, other: &Other) -> bool
fn strict_contained(&self, other: &Other) -> bool
Return
true if Self is strictly contained in Other.Source§fn intersects(&self, other: &Other) -> bool
fn intersects(&self, other: &Other) -> bool
Return
true if Self intersects with Other.Source§impl<'a> RelationBetweenShapes<ZultiLines<'a>> for Zoint<'a>
impl<'a> RelationBetweenShapes<ZultiLines<'a>> for Zoint<'a>
Source§fn relation(
&self,
_other: &ZultiLines<'a>,
relation: InputRelation,
) -> OutputRelation
fn relation( &self, _other: &ZultiLines<'a>, relation: InputRelation, ) -> OutputRelation
Return the relation between two shapes.
The
InputRelation lets you specify the kind of relation you want to retrieve. Read moreSource§fn all_relation(&self, other: &Other) -> OutputRelation
fn all_relation(&self, other: &Other) -> OutputRelation
Return all relations with no early return.
Source§fn any_relation(&self, other: &Other) -> OutputRelation
fn any_relation(&self, other: &Other) -> OutputRelation
Return the first relation we find with early return.
Source§fn strict_contains(&self, other: &Other) -> bool
fn strict_contains(&self, other: &Other) -> bool
Return
true if Self strictly contains Other.Source§fn strict_contained(&self, other: &Other) -> bool
fn strict_contained(&self, other: &Other) -> bool
Return
true if Self is strictly contained in Other.Source§fn intersects(&self, other: &Other) -> bool
fn intersects(&self, other: &Other) -> bool
Return
true if Self intersects with Other.Source§impl<'a> RelationBetweenShapes<ZultiPoints<'a>> for Zoint<'a>
impl<'a> RelationBetweenShapes<ZultiPoints<'a>> for Zoint<'a>
Source§fn relation(
&self,
_other: &ZultiPoints<'a>,
relation: InputRelation,
) -> OutputRelation
fn relation( &self, _other: &ZultiPoints<'a>, relation: InputRelation, ) -> OutputRelation
Return the relation between two shapes.
The
InputRelation lets you specify the kind of relation you want to retrieve. Read moreSource§fn all_relation(&self, other: &Other) -> OutputRelation
fn all_relation(&self, other: &Other) -> OutputRelation
Return all relations with no early return.
Source§fn any_relation(&self, other: &Other) -> OutputRelation
fn any_relation(&self, other: &Other) -> OutputRelation
Return the first relation we find with early return.
Source§fn strict_contains(&self, other: &Other) -> bool
fn strict_contains(&self, other: &Other) -> bool
Return
true if Self strictly contains Other.Source§fn strict_contained(&self, other: &Other) -> bool
fn strict_contained(&self, other: &Other) -> bool
Return
true if Self is strictly contained in Other.Source§fn intersects(&self, other: &Other) -> bool
fn intersects(&self, other: &Other) -> bool
Return
true if Self intersects with Other.Source§impl<'a> RelationBetweenShapes<ZultiPolygons<'a>> for Zoint<'a>
impl<'a> RelationBetweenShapes<ZultiPolygons<'a>> for Zoint<'a>
Source§fn relation(
&self,
other: &ZultiPolygons<'a>,
relation: InputRelation,
) -> OutputRelation
fn relation( &self, other: &ZultiPolygons<'a>, relation: InputRelation, ) -> OutputRelation
Return the relation between two shapes.
The
InputRelation lets you specify the kind of relation you want to retrieve. Read moreSource§fn all_relation(&self, other: &Other) -> OutputRelation
fn all_relation(&self, other: &Other) -> OutputRelation
Return all relations with no early return.
Source§fn any_relation(&self, other: &Other) -> OutputRelation
fn any_relation(&self, other: &Other) -> OutputRelation
Return the first relation we find with early return.
Source§fn strict_contains(&self, other: &Other) -> bool
fn strict_contains(&self, other: &Other) -> bool
Return
true if Self strictly contains Other.Source§fn strict_contained(&self, other: &Other) -> bool
fn strict_contained(&self, other: &Other) -> bool
Return
true if Self is strictly contained in Other.Source§fn intersects(&self, other: &Other) -> bool
fn intersects(&self, other: &Other) -> bool
Return
true if Self intersects with Other.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