Struct piet::GradientStop
source · Expand description
Specification of a gradient stop.
Fields§
§pos: f32
The coordinate of the stop.
color: Color
The color at that stop.
Trait Implementations§
source§impl Clone for GradientStop
impl Clone for GradientStop
source§fn clone(&self) -> GradientStop
fn clone(&self) -> GradientStop
Returns a copy of the value. Read more
1.0.0 · 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 GradientStop
impl Debug for GradientStop
source§impl Hash for GradientStop
impl Hash for GradientStop
source§impl PartialEq<GradientStop> for GradientStop
impl PartialEq<GradientStop> for GradientStop
source§fn eq(&self, other: &GradientStop) -> bool
fn eq(&self, other: &GradientStop) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.