pub struct StrokePath {
pub pts: Vec<(f64, f64)>,
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§
§pts: Vec<(f64, f64)>Interpolating vertices used to build Self::d. Halo/clash read these,
not a scrape of the serialized path.
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
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more