pub struct StrokePath {
pub d: String,
pub stroke: String,
pub fill: Option<String>,
pub stroke_width: f64,
pub stroke_linecap: Option<String>,
pub class: String,
}Expand description
One SVG stroke before it becomes a Primitive.
Fields§
§d: String§stroke: String§fill: Option<String>§stroke_width: f64§stroke_linecap: Option<String>§class: StringImplementations§
Source§impl StrokePath
impl StrokePath
pub fn to_primitive(&self) -> Primitive
pub fn with_color(self, color: &str) -> Self
Trait Implementations§
Source§impl Clone for StrokePath
impl Clone for StrokePath
Source§fn clone(&self) -> StrokePath
fn clone(&self) -> StrokePath
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 StrokePath
impl Debug for StrokePath
Source§impl PartialEq for StrokePath
impl PartialEq for StrokePath
Source§fn eq(&self, other: &StrokePath) -> bool
fn eq(&self, other: &StrokePath) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StrokePath
Auto Trait Implementations§
impl Freeze for StrokePath
impl RefUnwindSafe for StrokePath
impl Send for StrokePath
impl Sync for StrokePath
impl Unpin for StrokePath
impl UnsafeUnpin for StrokePath
impl UnwindSafe for StrokePath
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