Struct druid::piet::GradientStop
pub struct GradientStop {
pub pos: f32,
pub color: Color,
}
Expand description
Specification of a gradient stop.
Fields§
§pos: f32
The coordinate of the stop.
color: Color
The color at that stop.
Trait Implementations§
§impl Clone for GradientStop
impl Clone for GradientStop
§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 more§impl Debug for GradientStop
impl Debug for GradientStop
§impl Hash for GradientStop
impl Hash for GradientStop
§impl PartialEq<GradientStop> for GradientStop
impl PartialEq<GradientStop> for GradientStop
§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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> RoundFrom<T> for T
impl<T> RoundFrom<T> for T
§fn round_from(x: T) -> T
fn round_from(x: T) -> T
Performs the conversion.
§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere U: RoundFrom<T>,
§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.