#[non_exhaustive]pub struct SegmentOverlap {
pub from: Point2,
pub to: Point2,
pub segments: Vec<usize>,
}Expand description
A collinear piece shared by two or more segments.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.from: Point2The lexicographically smaller end. Always an input endpoint, so it is exact.
to: Point2The lexicographically larger end, also an input endpoint.
segments: Vec<usize>The segments covering the whole piece, by increasing index. The set changes at both ends (or the piece ends there).
Trait Implementations§
Source§impl Clone for SegmentOverlap
impl Clone for SegmentOverlap
Source§fn clone(&self) -> SegmentOverlap
fn clone(&self) -> SegmentOverlap
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SegmentOverlap
impl Debug for SegmentOverlap
Source§impl PartialEq for SegmentOverlap
impl PartialEq for SegmentOverlap
impl StructuralPartialEq for SegmentOverlap
Auto Trait Implementations§
impl Freeze for SegmentOverlap
impl RefUnwindSafe for SegmentOverlap
impl Send for SegmentOverlap
impl Sync for SegmentOverlap
impl Unpin for SegmentOverlap
impl UnsafeUnpin for SegmentOverlap
impl UnwindSafe for SegmentOverlap
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