pub struct Stroke {
pub width: f32,
pub paint: Paint,
pub cap: LineCap,
pub join: LineJoin,
pub miter_limit: f32,
pub dash: Option<DashPattern>,
}Expand description
Stroke style for a path’s outline.
Fields§
§width: f32§paint: Paint§cap: LineCap§join: LineJoin§miter_limit: f32Miter limit ratio. SVG / PDF default is 4.0.
dash: Option<DashPattern>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Stroke
impl RefUnwindSafe for Stroke
impl Send for Stroke
impl Sync for Stroke
impl Unpin for Stroke
impl UnsafeUnpin for Stroke
impl UnwindSafe for Stroke
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