pub struct Gradient {
pub spread: GradientSpread,
pub color_space: ColorSpace,
pub colors: Vec<ColorStop>,
}
Fields§
§spread: GradientSpread
§color_space: ColorSpace
§colors: Vec<ColorStop>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Gradient
impl<'de> Deserialize<'de> for Gradient
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 Ord for Gradient
impl Ord for Gradient
Source§impl PartialOrd for Gradient
impl PartialOrd for Gradient
impl Eq for Gradient
impl StructuralPartialEq for Gradient
Auto Trait Implementations§
impl Freeze for Gradient
impl RefUnwindSafe for Gradient
impl Send for Gradient
impl Sync for Gradient
impl Unpin for Gradient
impl UnwindSafe for Gradient
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