pub struct Gradient {
pub kind: GradientKind,
pub stops: Vec<(Rgba, f32)>,
}Expand description
A CSS gradient reduced to what the painter needs: a shape and colour stops.
Fields§
§kind: GradientKind§stops: Vec<(Rgba, f32)>Colour stops as (colour, offset) with offset in 0..=1, in order.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Gradient
impl RefUnwindSafe for Gradient
impl Send for Gradient
impl Sync for Gradient
impl Unpin for Gradient
impl UnsafeUnpin for Gradient
impl UnwindSafe for Gradient
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