pub struct Zine<'a> { /* private fields */ }Implementations§
Source§impl<'a> Zine<'a>
impl<'a> Zine<'a>
pub fn new(bounding_box: &'a BoundingBox, coords: &'a Coords) -> Self
pub fn from_bytes(data: &'a [u8]) -> Self
pub fn write_from_geometry( writer: &mut impl Write, geometry: &LineString<f64>, ) -> Result<(), Error>
pub fn bounding_box(&self) -> &'a BoundingBox
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn coords(&self) -> &'a Coords
pub fn segments(&self) -> impl Iterator<Item = Segment<'a>>
pub fn to_geo(self) -> LineString<f64>
Trait Implementations§
Source§impl<'a> PartialEq<LineString> for Zine<'a>
impl<'a> PartialEq<LineString> for Zine<'a>
Source§impl<'a> RelationBetweenShapes<Zerometry<'a>> for Zine<'a>
impl<'a> RelationBetweenShapes<Zerometry<'a>> for Zine<'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 Zerometry<'a>
impl<'a> RelationBetweenShapes<Zine<'a>> for Zerometry<'a>
fn relation(&self, other: &Zine<'_>, 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 Zine<'a>
impl<'a> RelationBetweenShapes<Zine<'a>> for Zine<'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<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<Zine<'a>> for Zollection<'a>
impl<'a> RelationBetweenShapes<Zine<'a>> for Zollection<'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<Zine<'a>> for Zolygon<'a>
impl<'a> RelationBetweenShapes<Zine<'a>> for Zolygon<'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<Zine<'a>> for ZultiLines<'a>
impl<'a> RelationBetweenShapes<Zine<'a>> for ZultiLines<'a>
fn relation(&self, other: &Zine<'_>, 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 ZultiPoints<'a>
impl<'a> RelationBetweenShapes<Zine<'a>> for ZultiPoints<'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<Zine<'a>> for ZultiPolygons<'a>
impl<'a> RelationBetweenShapes<Zine<'a>> for ZultiPolygons<'a>
fn relation(&self, other: &Zine<'_>, 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<Zollection<'a>> for Zine<'a>
impl<'a> RelationBetweenShapes<Zollection<'a>> for Zine<'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 Zine<'a>
impl<'a> RelationBetweenShapes<Zolygon<'a>> for Zine<'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 Zine<'a>
impl<'a> RelationBetweenShapes<ZultiLines<'a>> for Zine<'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 Zine<'a>
impl<'a> RelationBetweenShapes<ZultiPoints<'a>> for Zine<'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 Zine<'a>
impl<'a> RelationBetweenShapes<ZultiPolygons<'a>> for Zine<'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 Zine<'a>
Auto Trait Implementations§
impl<'a> Freeze for Zine<'a>
impl<'a> RefUnwindSafe for Zine<'a>
impl<'a> Send for Zine<'a>
impl<'a> Sync for Zine<'a>
impl<'a> Unpin for Zine<'a>
impl<'a> UnwindSafe for Zine<'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