pub struct Stroke { /* private fields */ }Expand description
Stroke color and width for lines and shape outlines.
Implementations§
Source§impl Stroke
impl Stroke
Sourcepub const fn new(width: f32, color: Color) -> Self
pub const fn new(width: f32, color: Color) -> Self
Builds a stroke used by shape outlines and legacy logical-width lines.
StrokeStyle2d::world reuses the same scalar/color value while making
the width’s coordinate space explicit on the containing style.
Trait Implementations§
impl Copy for Stroke
impl StructuralPartialEq for Stroke
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