Struct geo_crossings::crossings::Crossing [−][src]
pub struct Crossing<C: Crossable> {
pub crossable: C,
pub line: Line<C::Scalar>,
pub first_segment: bool,
pub has_overlap: bool,
pub at_left: bool,
}
Expand description
A segment of a input Crossable
type.
This type is used to convey the part of the input geometry that is
intersecting at a given intersection. This is returned by the
CrossingsIter::intersections
method.
Fields
crossable: C
The input associated with this segment.
line: Line<C::Scalar>
The geometry of this segment.
This is a part of the input crossable
geometry and either
starts or ends at the intersection point last yielded by
CrossingsIter
. If it ends at the point (at_left
is
false
), then it is guaranteed to not contain any other
intersection point in its interior.
first_segment: bool
Whether this is the first segment of the input line.
has_overlap: bool
Flag that is true
if the next geom in the sequence overlaps
(i.e. intersects at more than one point) with this. Not
relevant and false
if this is a point.
at_left: bool
Flag that is true
if the geom
starts at the intersection
point. Otherwise, it ends at the intersection point.
Trait Implementations
Auto Trait Implementations
impl<C> RefUnwindSafe for Crossing<C> where
C: RefUnwindSafe,
<C as Crossable>::Scalar: RefUnwindSafe,
impl<C> UnwindSafe for Crossing<C> where
C: UnwindSafe,
<C as Crossable>::Scalar: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more