pub enum Fill {
Solid(Color),
Linear(LinearGradient),
Radial(RadialGradient),
None,
}Expand description
How a shape is filled.
Variants§
Solid(Color)
The shape is filled with a single colour.
Linear(LinearGradient)
The shape is filled with a linear gradient.
Radial(RadialGradient)
The shape is filled with a radial gradient.
None
The shape is not filled.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Fill
Auto Trait Implementations§
impl Freeze for Fill
impl RefUnwindSafe for Fill
impl Send for Fill
impl Sync for Fill
impl Unpin for Fill
impl UnsafeUnpin for Fill
impl UnwindSafe for Fill
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