pub struct OffsetResult {
pub coords: Vec<(f64, f64)>,
pub was_simplified: bool,
}Expand description
Result returned by offset_linestring and its variants.
Fields§
§coords: Vec<(f64, f64)>The offset coordinates as (x, y) tuples.
was_simplified: booltrue if simplify_tolerance was set and Douglas-Peucker was applied.
Trait Implementations§
Source§impl Clone for OffsetResult
impl Clone for OffsetResult
Source§fn clone(&self) -> OffsetResult
fn clone(&self) -> OffsetResult
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 moreAuto Trait Implementations§
impl Freeze for OffsetResult
impl RefUnwindSafe for OffsetResult
impl Send for OffsetResult
impl Sync for OffsetResult
impl Unpin for OffsetResult
impl UnsafeUnpin for OffsetResult
impl UnwindSafe for OffsetResult
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