Struct piet_common::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 ==
.impl Eq for GradientStop
Auto Trait Implementations§
impl RefUnwindSafe for GradientStop
impl Send for GradientStop
impl Sync for GradientStop
impl Unpin for GradientStop
impl UnwindSafe for GradientStop
Blanket Implementations§
source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.