pub enum Gradient {
Linear {
start_point: Point,
end_point: Point,
color_stops: Vec<ColorStop>,
},
Radial {
center: Point,
radius: f64,
color_stops: Vec<ColorStop>,
},
}Expand description
Gradient type
Variants§
Linear
Linear gradient from start point to end point
Fields
Radial
Radial gradient from center with radius
Implementations§
Trait Implementations§
impl StructuralPartialEq for Gradient
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