pub enum Zerometry<'a> {
Point(Zoint<'a>),
MultiPoints(ZultiPoints<'a>),
Line(Zine<'a>),
MultiLines(ZultiLines<'a>),
Polygon(Zolygon<'a>),
MultiPolygon(ZultiPolygons<'a>),
Collection(Zollection<'a>),
}Expand description
Main structure of this crate, this is the equivalent of a geo_types::Geometry but serialized.
Variants§
Point(Zoint<'a>)
Equivalent of a geo_types::Point
MultiPoints(ZultiPoints<'a>)
Equivalent of a geo_types::MultiPoint
Line(Zine<'a>)
Equivalent of a geo_types::LineString
MultiLines(ZultiLines<'a>)
Equivalent of a geo_types::MultiLineString
Polygon(Zolygon<'a>)
Equivalent of a geo_types::Polygon
MultiPolygon(ZultiPolygons<'a>)
Equivalent of a geo_types::MultiPolygon
Collection(Zollection<'a>)
Equivalent of a geo_types::GeometryCollection
Implementations§
Source§impl<'a> Zerometry<'a>
impl<'a> Zerometry<'a>
Sourcepub unsafe fn from_bytes(data: &'a [u8]) -> Result<Self, Error>
pub unsafe fn from_bytes(data: &'a [u8]) -> Result<Self, Error>
Create a Zerometry from a slice of bytes.
See Self::write_from_geometry to create the slice of bytes.
§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 Vec<u8>,
geometry: &Geometry<f64>,
) -> Result<(), Error>
pub fn write_from_geometry( writer: &mut Vec<u8>, geometry: &Geometry<f64>, ) -> Result<(), Error>
Convert the specified geo_types::Geometry to a valid Zerometry slice of bytes in the input buffer.
This is a destructive operation, the original geometry cannot be recreated as-is from the outputted zerometry:
- The Line, Triangle and Rectangle gets converted respectively to Zine and Zolygon
- The collections are flattened to a collection containing one multipoints, one multipolygons and one multilines.
Sourcepub fn to_multi_points(&self) -> Option<ZultiPoints<'_>>
pub fn to_multi_points(&self) -> Option<ZultiPoints<'_>>
Convert the Zerometry to a ZultiPoints if possible. If it was not a multi point it returns None.
Sourcepub fn to_zulti_lines(&self) -> Option<ZultiLines<'_>>
pub fn to_zulti_lines(&self) -> Option<ZultiLines<'_>>
Convert the Zerometry to a ZultiLines if possible. If it was not a multi lines it returns None.
Sourcepub fn to_polygon(&self) -> Option<Zolygon<'_>>
pub fn to_polygon(&self) -> Option<Zolygon<'_>>
Sourcepub fn to_multi_polygon(&self) -> Option<ZultiPolygons<'_>>
pub fn to_multi_polygon(&self) -> Option<ZultiPolygons<'_>>
Convert the Zerometry to a ZultiPolygons if possible. If it was not a multi polygons it returns None.
Sourcepub fn to_collection(&self) -> Option<Zollection<'_>>
pub fn to_collection(&self) -> Option<Zollection<'_>>
Convert the Zerometry to a Zollection if possible. If it was not a collection it returns None.
Trait Implementations§
Source§impl<'a> From<ZultiPoints<'a>> for Zerometry<'a>
impl<'a> From<ZultiPoints<'a>> for Zerometry<'a>
Source§fn from(points: ZultiPoints<'a>) -> Self
fn from(points: ZultiPoints<'a>) -> Self
Source§impl<'a> From<ZultiPolygons<'a>> for Zerometry<'a>
impl<'a> From<ZultiPolygons<'a>> for Zerometry<'a>
Source§fn from(polygon: ZultiPolygons<'a>) -> Self
fn from(polygon: ZultiPolygons<'a>) -> Self
Source§impl<'a> RelationBetweenShapes<Geometry> for Zerometry<'a>
impl<'a> RelationBetweenShapes<Geometry> for Zerometry<'a>
Source§fn relation(
&self,
other: &Geometry<f64>,
relation: InputRelation,
) -> OutputRelation
fn relation( &self, other: &Geometry<f64>, relation: InputRelation, ) -> OutputRelation
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
Source§fn any_relation(&self, other: &Other) -> OutputRelation
fn any_relation(&self, other: &Other) -> OutputRelation
Source§fn strict_contains(&self, other: &Other) -> bool
fn strict_contains(&self, other: &Other) -> bool
true if Self strictly contains Other.Source§fn strict_contained(&self, other: &Other) -> bool
fn strict_contained(&self, other: &Other) -> bool
true if Self is strictly contained in Other.Source§fn intersects(&self, other: &Other) -> bool
fn intersects(&self, other: &Other) -> bool
true if Self intersects with Other.Source§impl<'a> RelationBetweenShapes<MultiPolygon> for Zerometry<'a>
impl<'a> RelationBetweenShapes<MultiPolygon> for Zerometry<'a>
Source§fn relation(
&self,
other: &MultiPolygon<f64>,
relation: InputRelation,
) -> OutputRelation
fn relation( &self, other: &MultiPolygon<f64>, relation: InputRelation, ) -> OutputRelation
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
Source§fn any_relation(&self, other: &Other) -> OutputRelation
fn any_relation(&self, other: &Other) -> OutputRelation
Source§fn strict_contains(&self, other: &Other) -> bool
fn strict_contains(&self, other: &Other) -> bool
true if Self strictly contains Other.Source§fn strict_contained(&self, other: &Other) -> bool
fn strict_contained(&self, other: &Other) -> bool
true if Self is strictly contained in Other.Source§fn intersects(&self, other: &Other) -> bool
fn intersects(&self, other: &Other) -> bool
true if Self intersects with Other.Source§impl<'a> RelationBetweenShapes<Polygon> for Zerometry<'a>
impl<'a> RelationBetweenShapes<Polygon> for Zerometry<'a>
Source§fn relation(
&self,
other: &Polygon<f64>,
relation: InputRelation,
) -> OutputRelation
fn relation( &self, other: &Polygon<f64>, relation: InputRelation, ) -> OutputRelation
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
Source§fn any_relation(&self, other: &Other) -> OutputRelation
fn any_relation(&self, other: &Other) -> OutputRelation
Source§fn strict_contains(&self, other: &Other) -> bool
fn strict_contains(&self, other: &Other) -> bool
true if Self strictly contains Other.Source§fn strict_contained(&self, other: &Other) -> bool
fn strict_contained(&self, other: &Other) -> bool
true if Self is strictly contained in Other.Source§fn intersects(&self, other: &Other) -> bool
fn intersects(&self, other: &Other) -> bool
true if Self intersects with Other.Source§impl<'a> RelationBetweenShapes<Zerometry<'a>> for Geometry<f64>
impl<'a> RelationBetweenShapes<Zerometry<'a>> for Geometry<f64>
Source§fn relation(
&self,
other: &Zerometry<'a>,
relation: InputRelation,
) -> OutputRelation
fn relation( &self, other: &Zerometry<'a>, relation: InputRelation, ) -> OutputRelation
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
Source§fn any_relation(&self, other: &Other) -> OutputRelation
fn any_relation(&self, other: &Other) -> OutputRelation
Source§fn strict_contains(&self, other: &Other) -> bool
fn strict_contains(&self, other: &Other) -> bool
true if Self strictly contains Other.Source§fn strict_contained(&self, other: &Other) -> bool
fn strict_contained(&self, other: &Other) -> bool
true if Self is strictly contained in Other.Source§fn intersects(&self, other: &Other) -> bool
fn intersects(&self, other: &Other) -> bool
true if Self intersects with Other.Source§impl<'a> RelationBetweenShapes<Zerometry<'a>> for Zerometry<'a>
impl<'a> RelationBetweenShapes<Zerometry<'a>> for Zerometry<'a>
Source§fn relation(
&self,
other: &Zerometry<'_>,
relation: InputRelation,
) -> OutputRelation
fn relation( &self, other: &Zerometry<'_>, relation: InputRelation, ) -> OutputRelation
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
Source§fn any_relation(&self, other: &Other) -> OutputRelation
fn any_relation(&self, other: &Other) -> OutputRelation
Source§fn strict_contains(&self, other: &Other) -> bool
fn strict_contains(&self, other: &Other) -> bool
true if Self strictly contains Other.Source§fn strict_contained(&self, other: &Other) -> bool
fn strict_contained(&self, other: &Other) -> bool
true if Self is strictly contained in Other.Source§fn intersects(&self, other: &Other) -> bool
fn intersects(&self, other: &Other) -> bool
true if Self intersects with Other.Source§impl<'a> RelationBetweenShapes<Zerometry<'a>> for Zine<'a>
impl<'a> RelationBetweenShapes<Zerometry<'a>> for Zine<'a>
Source§fn relation(
&self,
other: &Zerometry<'a>,
relation: InputRelation,
) -> OutputRelation
fn relation( &self, other: &Zerometry<'a>, relation: InputRelation, ) -> OutputRelation
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
Source§fn any_relation(&self, other: &Other) -> OutputRelation
fn any_relation(&self, other: &Other) -> OutputRelation
Source§fn strict_contains(&self, other: &Other) -> bool
fn strict_contains(&self, other: &Other) -> bool
true if Self strictly contains Other.Source§fn strict_contained(&self, other: &Other) -> bool
fn strict_contained(&self, other: &Other) -> bool
true if Self is strictly contained in Other.Source§fn intersects(&self, other: &Other) -> bool
fn intersects(&self, other: &Other) -> bool
true if Self intersects with Other.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
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
Source§fn any_relation(&self, other: &Other) -> OutputRelation
fn any_relation(&self, other: &Other) -> OutputRelation
Source§fn strict_contains(&self, other: &Other) -> bool
fn strict_contains(&self, other: &Other) -> bool
true if Self strictly contains Other.Source§fn strict_contained(&self, other: &Other) -> bool
fn strict_contained(&self, other: &Other) -> bool
true if Self is strictly contained in Other.Source§fn intersects(&self, other: &Other) -> bool
fn intersects(&self, other: &Other) -> bool
true if Self intersects with Other.Source§impl<'a> RelationBetweenShapes<Zerometry<'a>> for Zollection<'a>
impl<'a> RelationBetweenShapes<Zerometry<'a>> for Zollection<'a>
Source§fn relation(
&self,
other: &Zerometry<'a>,
relation: InputRelation,
) -> OutputRelation
fn relation( &self, other: &Zerometry<'a>, relation: InputRelation, ) -> OutputRelation
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
Source§fn any_relation(&self, other: &Other) -> OutputRelation
fn any_relation(&self, other: &Other) -> OutputRelation
Source§fn strict_contains(&self, other: &Other) -> bool
fn strict_contains(&self, other: &Other) -> bool
true if Self strictly contains Other.Source§fn strict_contained(&self, other: &Other) -> bool
fn strict_contained(&self, other: &Other) -> bool
true if Self is strictly contained in Other.Source§fn intersects(&self, other: &Other) -> bool
fn intersects(&self, other: &Other) -> bool
true if Self intersects with Other.Source§impl<'a> RelationBetweenShapes<Zerometry<'a>> for Zolygon<'a>
impl<'a> RelationBetweenShapes<Zerometry<'a>> for Zolygon<'a>
Source§fn relation(
&self,
other: &Zerometry<'a>,
relation: InputRelation,
) -> OutputRelation
fn relation( &self, other: &Zerometry<'a>, relation: InputRelation, ) -> OutputRelation
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
Source§fn any_relation(&self, other: &Other) -> OutputRelation
fn any_relation(&self, other: &Other) -> OutputRelation
Source§fn strict_contains(&self, other: &Other) -> bool
fn strict_contains(&self, other: &Other) -> bool
true if Self strictly contains Other.Source§fn strict_contained(&self, other: &Other) -> bool
fn strict_contained(&self, other: &Other) -> bool
true if Self is strictly contained in Other.Source§fn intersects(&self, other: &Other) -> bool
fn intersects(&self, other: &Other) -> bool
true if Self intersects with Other.Source§impl<'a> RelationBetweenShapes<Zerometry<'a>> for ZultiLines<'a>
impl<'a> RelationBetweenShapes<Zerometry<'a>> for ZultiLines<'a>
Source§fn relation(
&self,
other: &Zerometry<'a>,
relation: InputRelation,
) -> OutputRelation
fn relation( &self, other: &Zerometry<'a>, relation: InputRelation, ) -> OutputRelation
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
Source§fn any_relation(&self, other: &Other) -> OutputRelation
fn any_relation(&self, other: &Other) -> OutputRelation
Source§fn strict_contains(&self, other: &Other) -> bool
fn strict_contains(&self, other: &Other) -> bool
true if Self strictly contains Other.Source§fn strict_contained(&self, other: &Other) -> bool
fn strict_contained(&self, other: &Other) -> bool
true if Self is strictly contained in Other.Source§fn intersects(&self, other: &Other) -> bool
fn intersects(&self, other: &Other) -> bool
true if Self intersects with Other.Source§impl<'a> RelationBetweenShapes<Zerometry<'a>> for ZultiPoints<'a>
impl<'a> RelationBetweenShapes<Zerometry<'a>> for ZultiPoints<'a>
Source§fn relation(
&self,
other: &Zerometry<'a>,
relation: InputRelation,
) -> OutputRelation
fn relation( &self, other: &Zerometry<'a>, relation: InputRelation, ) -> OutputRelation
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
Source§fn any_relation(&self, other: &Other) -> OutputRelation
fn any_relation(&self, other: &Other) -> OutputRelation
Source§fn strict_contains(&self, other: &Other) -> bool
fn strict_contains(&self, other: &Other) -> bool
true if Self strictly contains Other.Source§fn strict_contained(&self, other: &Other) -> bool
fn strict_contained(&self, other: &Other) -> bool
true if Self is strictly contained in Other.Source§fn intersects(&self, other: &Other) -> bool
fn intersects(&self, other: &Other) -> bool
true if Self intersects with Other.Source§impl<'a> RelationBetweenShapes<Zerometry<'a>> for ZultiPolygons<'a>
impl<'a> RelationBetweenShapes<Zerometry<'a>> for ZultiPolygons<'a>
Source§fn relation(
&self,
other: &Zerometry<'_>,
relation: InputRelation,
) -> OutputRelation
fn relation( &self, other: &Zerometry<'_>, relation: InputRelation, ) -> OutputRelation
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
Source§fn any_relation(&self, other: &Other) -> OutputRelation
fn any_relation(&self, other: &Other) -> OutputRelation
Source§fn strict_contains(&self, other: &Other) -> bool
fn strict_contains(&self, other: &Other) -> bool
true if Self strictly contains Other.Source§fn strict_contained(&self, other: &Other) -> bool
fn strict_contained(&self, other: &Other) -> bool
true if Self is strictly contained in Other.Source§fn intersects(&self, other: &Other) -> bool
fn intersects(&self, other: &Other) -> bool
true if Self intersects with Other.Source§impl<'a> RelationBetweenShapes<Zine<'a>> for Zerometry<'a>
impl<'a> RelationBetweenShapes<Zine<'a>> for Zerometry<'a>
Source§fn relation(&self, other: &Zine<'_>, relation: InputRelation) -> OutputRelation
fn relation(&self, other: &Zine<'_>, relation: InputRelation) -> OutputRelation
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
Source§fn any_relation(&self, other: &Other) -> OutputRelation
fn any_relation(&self, other: &Other) -> OutputRelation
Source§fn strict_contains(&self, other: &Other) -> bool
fn strict_contains(&self, other: &Other) -> bool
true if Self strictly contains Other.Source§fn strict_contained(&self, other: &Other) -> bool
fn strict_contained(&self, other: &Other) -> bool
true if Self is strictly contained in Other.Source§fn intersects(&self, other: &Other) -> bool
fn intersects(&self, other: &Other) -> bool
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
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
Source§fn any_relation(&self, other: &Other) -> OutputRelation
fn any_relation(&self, other: &Other) -> OutputRelation
Source§fn strict_contains(&self, other: &Other) -> bool
fn strict_contains(&self, other: &Other) -> bool
true if Self strictly contains Other.Source§fn strict_contained(&self, other: &Other) -> bool
fn strict_contained(&self, other: &Other) -> bool
true if Self is strictly contained in Other.Source§fn intersects(&self, other: &Other) -> bool
fn intersects(&self, other: &Other) -> bool
true if Self intersects with Other.Source§impl<'a> RelationBetweenShapes<Zollection<'a>> for Zerometry<'a>
impl<'a> RelationBetweenShapes<Zollection<'a>> for Zerometry<'a>
Source§fn relation(
&self,
other: &Zollection<'_>,
relation: InputRelation,
) -> OutputRelation
fn relation( &self, other: &Zollection<'_>, relation: InputRelation, ) -> OutputRelation
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
Source§fn any_relation(&self, other: &Other) -> OutputRelation
fn any_relation(&self, other: &Other) -> OutputRelation
Source§fn strict_contains(&self, other: &Other) -> bool
fn strict_contains(&self, other: &Other) -> bool
true if Self strictly contains Other.Source§fn strict_contained(&self, other: &Other) -> bool
fn strict_contained(&self, other: &Other) -> bool
true if Self is strictly contained in Other.Source§fn intersects(&self, other: &Other) -> bool
fn intersects(&self, other: &Other) -> bool
true if Self intersects with Other.Source§impl<'a> RelationBetweenShapes<Zolygon<'a>> for Zerometry<'a>
impl<'a> RelationBetweenShapes<Zolygon<'a>> for Zerometry<'a>
Source§fn relation(
&self,
other: &Zolygon<'_>,
relation: InputRelation,
) -> OutputRelation
fn relation( &self, other: &Zolygon<'_>, relation: InputRelation, ) -> OutputRelation
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
Source§fn any_relation(&self, other: &Other) -> OutputRelation
fn any_relation(&self, other: &Other) -> OutputRelation
Source§fn strict_contains(&self, other: &Other) -> bool
fn strict_contains(&self, other: &Other) -> bool
true if Self strictly contains Other.Source§fn strict_contained(&self, other: &Other) -> bool
fn strict_contained(&self, other: &Other) -> bool
true if Self is strictly contained in Other.Source§fn intersects(&self, other: &Other) -> bool
fn intersects(&self, other: &Other) -> bool
true if Self intersects with Other.Source§impl<'a> RelationBetweenShapes<ZultiLines<'a>> for Zerometry<'a>
impl<'a> RelationBetweenShapes<ZultiLines<'a>> for Zerometry<'a>
Source§fn relation(
&self,
other: &ZultiLines<'_>,
relation: InputRelation,
) -> OutputRelation
fn relation( &self, other: &ZultiLines<'_>, relation: InputRelation, ) -> OutputRelation
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
Source§fn any_relation(&self, other: &Other) -> OutputRelation
fn any_relation(&self, other: &Other) -> OutputRelation
Source§fn strict_contains(&self, other: &Other) -> bool
fn strict_contains(&self, other: &Other) -> bool
true if Self strictly contains Other.Source§fn strict_contained(&self, other: &Other) -> bool
fn strict_contained(&self, other: &Other) -> bool
true if Self is strictly contained in Other.Source§fn intersects(&self, other: &Other) -> bool
fn intersects(&self, other: &Other) -> bool
true if Self intersects with Other.Source§impl<'a> RelationBetweenShapes<ZultiPoints<'a>> for Zerometry<'a>
impl<'a> RelationBetweenShapes<ZultiPoints<'a>> for Zerometry<'a>
Source§fn relation(
&self,
other: &ZultiPoints<'_>,
relation: InputRelation,
) -> OutputRelation
fn relation( &self, other: &ZultiPoints<'_>, relation: InputRelation, ) -> OutputRelation
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
Source§fn any_relation(&self, other: &Other) -> OutputRelation
fn any_relation(&self, other: &Other) -> OutputRelation
Source§fn strict_contains(&self, other: &Other) -> bool
fn strict_contains(&self, other: &Other) -> bool
true if Self strictly contains Other.Source§fn strict_contained(&self, other: &Other) -> bool
fn strict_contained(&self, other: &Other) -> bool
true if Self is strictly contained in Other.Source§fn intersects(&self, other: &Other) -> bool
fn intersects(&self, other: &Other) -> bool
true if Self intersects with Other.Source§impl<'a> RelationBetweenShapes<ZultiPolygons<'a>> for Zerometry<'a>
impl<'a> RelationBetweenShapes<ZultiPolygons<'a>> for Zerometry<'a>
Source§fn relation(
&self,
other: &ZultiPolygons<'_>,
relation: InputRelation,
) -> OutputRelation
fn relation( &self, other: &ZultiPolygons<'_>, relation: InputRelation, ) -> OutputRelation
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
Source§fn any_relation(&self, other: &Other) -> OutputRelation
fn any_relation(&self, other: &Other) -> OutputRelation
Source§fn strict_contains(&self, other: &Other) -> bool
fn strict_contains(&self, other: &Other) -> bool
true if Self strictly contains Other.Source§fn strict_contained(&self, other: &Other) -> bool
fn strict_contained(&self, other: &Other) -> bool
true if Self is strictly contained in Other.Source§fn intersects(&self, other: &Other) -> bool
fn intersects(&self, other: &Other) -> bool
true if Self intersects with Other.impl<'a> Copy for Zerometry<'a>
Auto Trait Implementations§
impl<'a> Freeze for Zerometry<'a>
impl<'a> RefUnwindSafe for Zerometry<'a>
impl<'a> Send for Zerometry<'a>
impl<'a> Sync for Zerometry<'a>
impl<'a> Unpin for Zerometry<'a>
impl<'a> UnwindSafe for Zerometry<'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
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>
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>
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