pub enum Paint {
Solid(Color),
Linear(LinearGradient),
Radial(RadialGradient),
}Expand description
A fill source: a solid color, or a linear/radial gradient (docs/shapes.md §3.2 — angular and
semantic tokens are later phases). From<Color> keeps every existing fill(shape, color)
call site compiling unchanged.
Variants§
Trait Implementations§
Source§impl From<LinearGradient> for Paint
impl From<LinearGradient> for Paint
Source§fn from(g: LinearGradient) -> Self
fn from(g: LinearGradient) -> Self
Converts to this type from the input type.
Source§impl From<RadialGradient> for Paint
impl From<RadialGradient> for Paint
Source§fn from(g: RadialGradient) -> Self
fn from(g: RadialGradient) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for Paint
Auto Trait Implementations§
impl Freeze for Paint
impl RefUnwindSafe for Paint
impl Send for Paint
impl Sync for Paint
impl Unpin for Paint
impl UnsafeUnpin for Paint
impl UnwindSafe for Paint
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