pub struct StrokeCommand<Brush = Paint> {
pub style: Stroke,
pub transform: Affine,
pub brush: Brush,
pub brush_transform: Option<Affine>,
pub shape: BezPath,
}Expand description
Strokes a shape using the specified style and brush.
Fields§
§style: Stroke§transform: Affine§brush: Brush§brush_transform: Option<Affine>§shape: BezPathTrait Implementations§
Source§impl<Brush: Clone> Clone for StrokeCommand<Brush>
impl<Brush: Clone> Clone for StrokeCommand<Brush>
Source§fn clone(&self) -> StrokeCommand<Brush>
fn clone(&self) -> StrokeCommand<Brush>
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<Brush: Debug> Debug for StrokeCommand<Brush>
impl<Brush: Debug> Debug for StrokeCommand<Brush>
Source§impl<Brush: PartialEq> PartialEq for StrokeCommand<Brush>
impl<Brush: PartialEq> PartialEq for StrokeCommand<Brush>
impl<Brush: PartialEq> StructuralPartialEq for StrokeCommand<Brush>
Auto Trait Implementations§
impl<Brush> Freeze for StrokeCommand<Brush>where
Brush: Freeze,
impl<Brush> RefUnwindSafe for StrokeCommand<Brush>where
Brush: RefUnwindSafe,
impl<Brush> Send for StrokeCommand<Brush>where
Brush: Send,
impl<Brush> Sync for StrokeCommand<Brush>where
Brush: Sync,
impl<Brush> Unpin for StrokeCommand<Brush>where
Brush: Unpin,
impl<Brush> UnsafeUnpin for StrokeCommand<Brush>where
Brush: UnsafeUnpin,
impl<Brush> UnwindSafe for StrokeCommand<Brush>where
Brush: UnwindSafe,
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