pub enum GradientAngle {
ToTop,
ToRight,
ToBottom,
ToLeft,
ToTopRight,
ToTopLeft,
ToBottomRight,
ToBottomLeft,
Radians(f32),
Degrees(f32),
}Expand description
An angle/direction for linear-gradient(...).
Variants§
ToTop
ToRight
ToBottom
ToLeft
ToTopRight
ToTopLeft
ToBottomRight
ToBottomLeft
Radians(f32)
Degrees(f32)
Trait Implementations§
Source§impl Clone for GradientAngle
impl Clone for GradientAngle
Source§fn clone(&self) -> GradientAngle
fn clone(&self) -> GradientAngle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for GradientAngle
Source§impl Debug for GradientAngle
impl Debug for GradientAngle
Source§impl Display for GradientAngle
impl Display for GradientAngle
Source§impl PartialEq for GradientAngle
impl PartialEq for GradientAngle
Source§fn eq(&self, other: &GradientAngle) -> bool
fn eq(&self, other: &GradientAngle) -> bool
Tests for
self and other values to be equal, and is used by ==.Auto Trait Implementations§
impl Freeze for GradientAngle
impl RefUnwindSafe for GradientAngle
impl Send for GradientAngle
impl Sync for GradientAngle
impl Unpin for GradientAngle
impl UnsafeUnpin for GradientAngle
impl UnwindSafe for GradientAngle
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