pub enum Stroke {
Solid(Color),
Linear(LinearGradient),
Radial(RadialGradient),
None,
}Expand description
How a shape is stroked.
Variants§
Solid(Color)
The shape is stroked with a single colour.
Linear(LinearGradient)
The shape is stroked with a linear gradient.
Radial(RadialGradient)
The shape is stroked with a radial gradient.
None
The shape is not stroked.
Implementations§
Trait Implementations§
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