pub struct GradientStopRef {
pub offset: f64,
pub color_token: String,
}Expand description
A single gradient stop: an offset in 0..1 and a reference to a color token.
Fields§
§offset: f64Position of the stop along the gradient axis, in 0.0..=1.0.
color_token: StringThe id of the color token this stop renders with.
Trait Implementations§
Source§impl Clone for GradientStopRef
impl Clone for GradientStopRef
Source§fn clone(&self) -> GradientStopRef
fn clone(&self) -> GradientStopRef
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 GradientStopRef
impl Debug for GradientStopRef
Source§impl PartialEq for GradientStopRef
impl PartialEq for GradientStopRef
Source§fn eq(&self, other: &GradientStopRef) -> bool
fn eq(&self, other: &GradientStopRef) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GradientStopRef
Auto Trait Implementations§
impl Freeze for GradientStopRef
impl RefUnwindSafe for GradientStopRef
impl Send for GradientStopRef
impl Sync for GradientStopRef
impl Unpin for GradientStopRef
impl UnsafeUnpin for GradientStopRef
impl UnwindSafe for GradientStopRef
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