pub enum GradientShape {
Linear(f32),
Radial,
}Expand description
Which way a Gradient’s colors run.
Variants§
Linear(f32)
Along a line through the middle at this many degrees, as in CSS: 0 runs from the bottom up, 90 from left to right, 180 from the top down. Its ends meet the corners.
Radial
In circles out from the middle to the farthest corner.
Trait Implementations§
Source§impl Clone for GradientShape
impl Clone for GradientShape
impl Copy for GradientShape
Source§impl Debug for GradientShape
impl Debug for GradientShape
Source§impl PartialEq for GradientShape
impl PartialEq for GradientShape
impl StructuralPartialEq for GradientShape
Auto Trait Implementations§
impl Forget for GradientShape
impl Freeze for GradientShape
impl Move for GradientShape
impl RefUnwindSafe for GradientShape
impl Send for GradientShape
impl Sync for GradientShape
impl Unpin for GradientShape
impl UnsafeUnpin for GradientShape
impl UnwindSafe for GradientShape
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