pub enum PaintChoice {
Theme(ThemeColor),
Linear(LinearPaint),
Radial(RadialPaint),
Conic(ConicPaint),
Color(Rgba),
}Expand description
A color, a theme color, or a gradient.
Variants§
Theme(ThemeColor)
A theme color by name.
Linear(LinearPaint)
Colors along a line across the area.
Radial(RadialPaint)
Colors out from a point.
Conic(ConicPaint)
Colors around a point.
Color(Rgba)
One color: CSS hex or the project’s color object.
Trait Implementations§
Source§impl Clone for PaintChoice
impl Clone for PaintChoice
Source§impl Debug for PaintChoice
impl Debug for PaintChoice
Source§impl<'de> Deserialize<'de> for PaintChoice
impl<'de> Deserialize<'de> for PaintChoice
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PaintChoice
impl PartialEq for PaintChoice
Source§impl Serialize for PaintChoice
impl Serialize for PaintChoice
impl StructuralPartialEq for PaintChoice
Auto Trait Implementations§
impl Forget for PaintChoice
impl Freeze for PaintChoice
impl Move for PaintChoice
impl RefUnwindSafe for PaintChoice
impl Send for PaintChoice
impl Sync for PaintChoice
impl Unpin for PaintChoice
impl UnsafeUnpin for PaintChoice
impl UnwindSafe for PaintChoice
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