pub struct ColorStop {
pub position: f64,
pub color: Box<Rgba>,
pub bound_variables: Option<Box<ColorStopBoundVariables>>,
}
Expand description
ColorStop : A single color stop with its position along the gradient axis, color, and bound variables if any
Fields§
§position: f64
Value between 0 and 1 representing position along gradient axis.
color: Box<Rgba>
Color attached to corresponding position.
bound_variables: Option<Box<ColorStopBoundVariables>>
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ColorStop
impl<'de> Deserialize<'de> for ColorStop
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
impl StructuralPartialEq for ColorStop
Auto Trait Implementations§
impl Freeze for ColorStop
impl RefUnwindSafe for ColorStop
impl Send for ColorStop
impl Sync for ColorStop
impl Unpin for ColorStop
impl UnwindSafe for ColorStop
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