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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.