pub struct GradientStops(pub Vec<GradientStop>);Expand description
Ordered gradient stops, sampled by sample. Kept small (usually 2-4).
Tuple Fields§
§0: Vec<GradientStop>Implementations§
Trait Implementations§
Source§impl Clone for GradientStops
impl Clone for GradientStops
Source§fn clone(&self) -> GradientStops
fn clone(&self) -> GradientStops
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GradientStops
impl Debug for GradientStops
Source§impl Default for GradientStops
impl Default for GradientStops
Source§impl<'de> Deserialize<'de> for GradientStops
impl<'de> Deserialize<'de> for GradientStops
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 GradientStops
impl PartialEq for GradientStops
Source§impl PropValue for GradientStops
impl PropValue for GradientStops
fn into_value(self) -> Value
fn from_value(v: &Value) -> Option<Self>
Source§impl Serialize for GradientStops
impl Serialize for GradientStops
impl StructuralPartialEq for GradientStops
Auto Trait Implementations§
impl Freeze for GradientStops
impl RefUnwindSafe for GradientStops
impl Send for GradientStops
impl Sync for GradientStops
impl Unpin for GradientStops
impl UnsafeUnpin for GradientStops
impl UnwindSafe for GradientStops
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