pub struct Polyline {
pub points: Vec<Point>,
pub bulges: Vec<f64>,
pub closed: bool,
}Expand description
Open or closed polyline whose segments may be circular arcs (DXF-style bulge).
Fields§
§points: Vec<Point>Vertices.
bulges: Vec<f64>Bulge per segment (tan(sweep/4)); empty means all straight.
closed: boolWhether the last vertex connects back to the first.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Polyline
impl<'de> Deserialize<'de> for Polyline
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Polyline
Auto Trait Implementations§
impl Freeze for Polyline
impl RefUnwindSafe for Polyline
impl Send for Polyline
impl Sync for Polyline
impl Unpin for Polyline
impl UnsafeUnpin for Polyline
impl UnwindSafe for Polyline
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