pub struct ColorStop {
pub offset: f32,
pub color: Color,
}
Expand description
A point along the gradient vector where the specified color
is unmixed.
Fields§
§offset: f32
Offset along the gradient vector.
color: Color
The color of the gradient at the specified offset
.
Trait Implementations§
source§impl PartialEq for ColorStop
impl PartialEq for ColorStop
impl Copy for ColorStop
impl StructuralPartialEq for ColorStop
Auto Trait Implementations§
impl RefUnwindSafe for ColorStop
impl Send for ColorStop
impl Sync for ColorStop
impl Unpin for ColorStop
impl UnwindSafe for ColorStop
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