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: f32Offset along the gradient vector.
color: ColorThe color of the gradient at the specified offset.
Trait Implementations§
impl Copy for ColorStop
impl StructuralPartialEq for ColorStop
Auto Trait Implementations§
impl Freeze for ColorStop
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