pub struct Stroke {
pub width: f32,
pub join: Join,
pub cap: Cap,
pub miter_limit: f32,
}Fields§
§width: f32§join: Join§cap: Cap§miter_limit: f32miter length over width before a miter join falls back to bevel
Implementations§
Source§impl Stroke
impl Stroke
Sourcepub fn width(self, value: f32) -> Self
pub fn width(self, value: f32) -> Self
sets Self::width
Sourcepub fn join(self, value: Join) -> Self
pub fn join(self, value: Join) -> Self
sets Self::join
Sourcepub fn miter_limit(self, value: f32) -> Self
pub fn miter_limit(self, value: f32) -> Self
sets Self::miter_limit
Trait Implementations§
impl Copy for Stroke
impl StructuralPartialEq for Stroke
Auto Trait Implementations§
impl Forget for Stroke
impl Freeze for Stroke
impl Move 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