Struct piet_common::GradientStop
source · Expand description
Specification of a gradient stop.
Fields
pos: f32The coordinate of the stop.
color: ColorThe color at that stop.
Trait Implementations
sourceimpl Clone for GradientStop
impl Clone for GradientStop
sourcefn clone(&self) -> GradientStop
fn clone(&self) -> GradientStop
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for GradientStop
impl Debug for GradientStop
sourceimpl Hash for GradientStop
impl Hash for GradientStop
sourceimpl PartialEq<GradientStop> for GradientStop
impl PartialEq<GradientStop> for GradientStop
sourcefn eq(&self, other: &GradientStop) -> bool
fn eq(&self, other: &GradientStop) -> bool
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> RoundFrom<T> for T
impl<T> RoundFrom<T> for T
sourcefn round_from(x: T) -> T
fn round_from(x: T) -> T
Performs the conversion.
sourceimpl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
sourcefn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.