pub struct SvgStroke {
pub color: Color,
pub gradient: Option<Gradient>,
pub width: f32,
pub cap: StrokeCap,
pub join: StrokeJoin,
pub miter_limit: f32,
pub dash: Option<Vec<f32>>,
pub dash_offset: f32,
}Expand description
A resolved SVG stroke: paint color plus the geometry parameters that
stroke_path expands the outline with. When gradient is set it paints
the outline instead of color.
Fields§
§color: Color§gradient: Option<Gradient>§width: f32§cap: StrokeCap§join: StrokeJoin§miter_limit: f32§dash: Option<Vec<f32>>§dash_offset: f32Trait Implementations§
impl StructuralPartialEq for SvgStroke
Auto Trait Implementations§
impl Freeze for SvgStroke
impl RefUnwindSafe for SvgStroke
impl Send for SvgStroke
impl Sync for SvgStroke
impl Unpin for SvgStroke
impl UnsafeUnpin for SvgStroke
impl UnwindSafe for SvgStroke
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,
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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