pub struct StrokeStyle {
pub width: f32,
pub cap: LineCap,
pub join: LineJoin,
pub miter_limit: f32,
pub dash: Option<Dash>,
}Fields§
§width: f32§cap: LineCap§join: LineJoin§miter_limit: f32§dash: Option<Dash>Implementations§
Source§impl StrokeStyle
impl StrokeStyle
pub fn new(width: f32) -> StrokeStyle
pub fn width(self, width: f32) -> StrokeStyle
pub fn cap(self, cap: LineCap) -> StrokeStyle
pub fn join(self, join: LineJoin) -> StrokeStyle
pub fn miter_limit(self, limit: f32) -> StrokeStyle
pub fn dash(self, dash: impl Into<Dash>) -> StrokeStyle
pub fn round(width: f32) -> StrokeStyle
Trait Implementations§
Source§impl Clone for StrokeStyle
impl Clone for StrokeStyle
Source§fn clone(&self) -> StrokeStyle
fn clone(&self) -> StrokeStyle
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 StrokeStyle
impl Debug for StrokeStyle
Source§impl Default for StrokeStyle
impl Default for StrokeStyle
Source§fn default() -> StrokeStyle
fn default() -> StrokeStyle
Returns the “default value” for a type. Read more
Source§impl PartialEq for StrokeStyle
impl PartialEq for StrokeStyle
impl StructuralPartialEq for StrokeStyle
Auto Trait Implementations§
impl Freeze for StrokeStyle
impl RefUnwindSafe for StrokeStyle
impl Send for StrokeStyle
impl Sync for StrokeStyle
impl Unpin for StrokeStyle
impl UnsafeUnpin for StrokeStyle
impl UnwindSafe for StrokeStyle
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