pub enum GradientShape {
Linear {
angle: f64,
scaled: bool,
},
Path {
path: String,
focus: [f64; 4],
},
}Variants§
Linear
Angle in degrees clockwise from left→right.
Path
circle, rect or shape path gradient; focus is the fill-to rect as fractions (l, t, r, b).
Trait Implementations§
Source§impl Clone for GradientShape
impl Clone for GradientShape
Source§impl Debug for GradientShape
impl Debug for GradientShape
Source§impl<'de> Deserialize<'de> for GradientShape
impl<'de> Deserialize<'de> for GradientShape
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 GradientShape
impl PartialEq for GradientShape
Source§impl Serialize for GradientShape
impl Serialize for GradientShape
impl StructuralPartialEq for GradientShape
Auto Trait Implementations§
impl Freeze for GradientShape
impl RefUnwindSafe for GradientShape
impl Send for GradientShape
impl Sync for GradientShape
impl Unpin for GradientShape
impl UnsafeUnpin for GradientShape
impl UnwindSafe for GradientShape
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