pub enum GradientStyle {
Linear,
Axial,
Radial,
Ellipsoidal,
Square,
Rectangular,
}Expand description
How a gradient runs, which is the part of it a renderer has to understand.
Variants§
Linear
Along an axis, from one edge to the other.
Axial
Along an axis, from the middle outwards to both edges.
Radial
Out from a point, in circles.
Ellipsoidal
Out from a point, in ellipses.
Square
Out from a point, in squares.
Rectangular
Out from a point, in rectangles.
Trait Implementations§
Source§impl Clone for GradientStyle
impl Clone for GradientStyle
impl Copy for GradientStyle
Source§impl Debug for GradientStyle
impl Debug for GradientStyle
impl Eq for GradientStyle
Source§impl PartialEq for GradientStyle
impl PartialEq for GradientStyle
impl StructuralPartialEq for GradientStyle
Auto Trait Implementations§
impl Freeze for GradientStyle
impl RefUnwindSafe for GradientStyle
impl Send for GradientStyle
impl Sync for GradientStyle
impl Unpin for GradientStyle
impl UnsafeUnpin for GradientStyle
impl UnwindSafe for GradientStyle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.