#[repr(C)]pub struct PolyChain { /* private fields */ }Expand description
A polygonal chain that is part of a Sketch
Implementations
sourceimpl PolyChain
impl PolyChain
sourcepub fn from_points(points: Vec<[f64; 2]>) -> Self
pub fn from_points(points: Vec<[f64; 2]>) -> Self
Construct an instance from a list of points
sourcepub fn to_segments(&self) -> Vec<SketchSegment>
pub fn to_segments(&self) -> Vec<SketchSegment>
Return the points that define the polygonal chain
Trait Implementations
impl StructuralPartialEq for PolyChain
Auto Trait Implementations
impl RefUnwindSafe for PolyChain
impl Send for PolyChain
impl Sync for PolyChain
impl Unpin for PolyChain
impl UnwindSafe for PolyChain
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more