#[non_exhaustive]pub enum PathPaint {
Solid(Color),
Linear {
start: Point,
end: Point,
stops: Arc<[ColorStop]>,
},
Radial {
center: Point,
radius: f32,
stops: Arc<[ColorStop]>,
},
Image {
image: ImageData,
placement: [f32; 6],
},
}Expand description
What fills a PathFill, in the coordinates of its outline.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Solid(Color)
One color.
Linear
Colors along the line from start to end.
Fields
Radial
Colors from center outward to radius.
Fields
Image
An image, seen through the outline.
Trait Implementations§
impl StructuralPartialEq for PathPaint
Auto Trait Implementations§
impl Freeze for PathPaint
impl RefUnwindSafe for PathPaint
impl Send for PathPaint
impl Sync for PathPaint
impl Unpin for PathPaint
impl UnsafeUnpin for PathPaint
impl UnwindSafe for PathPaint
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