pub struct PolylineNode {Show 15 fields
pub id: String,
pub name: Option<String>,
pub role: Option<String>,
pub fill: Option<PropertyValue>,
pub stroke: Option<PropertyValue>,
pub stroke_width: Option<PropertyValue>,
pub fill_rule: Option<String>,
pub opacity: Option<f64>,
pub visible: Option<bool>,
pub locked: Option<bool>,
pub rotate: Option<Dimension>,
pub style: Option<String>,
pub points: Vec<Point>,
pub source_span: Option<Span>,
pub unknown_props: BTreeMap<String, UnknownProperty>,
}Expand description
A polyline node — an OPEN stroked path defined by an ordered list of
point child nodes.
polyline has stroke (required for visible output) and optional fill.
Unlike polygon, polyline does NOT support stroke-alignment.
Fields§
§id: String§name: Option<String>§role: Option<String>§fill: Option<PropertyValue>§stroke: Option<PropertyValue>§stroke_width: Option<PropertyValue>§fill_rule: Option<String>"nonzero" (default) or "evenodd".
opacity: Option<f64>§visible: Option<bool>§locked: Option<bool>§rotate: Option<Dimension>§style: Option<String>§points: Vec<Point>Ordered vertex list parsed from point child nodes.
source_span: Option<Span>Source declaration span, when available.
unknown_props: BTreeMap<String, UnknownProperty>Unknown properties preserved for forward-compat.
Trait Implementations§
Source§impl Clone for PolylineNode
impl Clone for PolylineNode
Source§fn clone(&self) -> PolylineNode
fn clone(&self) -> PolylineNode
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 PolylineNode
impl Debug for PolylineNode
Source§impl PartialEq for PolylineNode
impl PartialEq for PolylineNode
Source§fn eq(&self, other: &PolylineNode) -> bool
fn eq(&self, other: &PolylineNode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PolylineNode
Auto Trait Implementations§
impl Freeze for PolylineNode
impl RefUnwindSafe for PolylineNode
impl Send for PolylineNode
impl Sync for PolylineNode
impl Unpin for PolylineNode
impl UnsafeUnpin for PolylineNode
impl UnwindSafe for PolylineNode
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