pub struct SnappedSegment {
pub start: Coordinate,
pub end: Coordinate,
pub source_line: usize,
}Expand description
A single output segment after snap rounding.
Both endpoints are guaranteed to lie on the precision grid.
Fields§
§start: CoordinateStart vertex (on grid).
end: CoordinateEnd vertex (on grid).
source_line: usizeIndex of the source polyline this segment was derived from.
Trait Implementations§
Source§impl Clone for SnappedSegment
impl Clone for SnappedSegment
Source§fn clone(&self) -> SnappedSegment
fn clone(&self) -> SnappedSegment
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 SnappedSegment
impl Debug for SnappedSegment
Source§impl PartialEq for SnappedSegment
impl PartialEq for SnappedSegment
Source§fn eq(&self, other: &SnappedSegment) -> bool
fn eq(&self, other: &SnappedSegment) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SnappedSegment
Auto Trait Implementations§
impl Freeze for SnappedSegment
impl RefUnwindSafe for SnappedSegment
impl Send for SnappedSegment
impl Sync for SnappedSegment
impl Unpin for SnappedSegment
impl UnsafeUnpin for SnappedSegment
impl UnwindSafe for SnappedSegment
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