pub enum LinearDirection {
ToTop,
ToRight,
ToBottom,
ToLeft,
ToTopRight,
ToTopLeft,
ToBottomRight,
ToBottomLeft,
Angle(Angle),
}Expand description
The direction component of a linear-gradient.
Variants§
ToTop
to top.
ToRight
to right.
ToBottom
to bottom.
ToLeft
to left.
ToTopRight
to top right.
ToTopLeft
to top left.
ToBottomRight
to bottom right.
ToBottomLeft
to bottom left.
Angle(Angle)
Explicit angle (<angle>). 0deg points up; positive angles
rotate clockwise.
Trait Implementations§
Source§impl Clone for LinearDirection
impl Clone for LinearDirection
Source§fn clone(&self) -> LinearDirection
fn clone(&self) -> LinearDirection
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 LinearDirection
Source§impl Debug for LinearDirection
impl Debug for LinearDirection
Source§impl PartialEq for LinearDirection
impl PartialEq for LinearDirection
Source§fn eq(&self, other: &LinearDirection) -> bool
fn eq(&self, other: &LinearDirection) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LinearDirection
Auto Trait Implementations§
impl Freeze for LinearDirection
impl RefUnwindSafe for LinearDirection
impl Send for LinearDirection
impl Sync for LinearDirection
impl Unpin for LinearDirection
impl UnsafeUnpin for LinearDirection
impl UnwindSafe for LinearDirection
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