pub enum GradientDirection {
Horizontal,
Vertical,
DiagonalDown,
DiagonalUp,
Angle(u32),
}Expand description
Gradient direction for linear gradients
Variants§
Horizontal
Left to right (0 degrees)
Vertical
Top to bottom (90 degrees)
DiagonalDown
Top-left to bottom-right (45 degrees)
DiagonalUp
Bottom-left to top-right (315 degrees)
Angle(u32)
Custom angle in degrees (0-360)
Implementations§
Trait Implementations§
Source§impl Clone for GradientDirection
impl Clone for GradientDirection
Source§fn clone(&self) -> GradientDirection
fn clone(&self) -> GradientDirection
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GradientDirection
impl Debug for GradientDirection
Source§impl PartialEq for GradientDirection
impl PartialEq for GradientDirection
impl Copy for GradientDirection
impl StructuralPartialEq for GradientDirection
Auto Trait Implementations§
impl Freeze for GradientDirection
impl RefUnwindSafe for GradientDirection
impl Send for GradientDirection
impl Sync for GradientDirection
impl Unpin for GradientDirection
impl UnwindSafe for GradientDirection
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