#[repr(C)]pub struct DirectionCorners {
pub dir_from: DirectionCorner,
pub dir_to: DirectionCorner,
}Expand description
A pair of corners representing the start and end of a CSS gradient direction.
Fields§
§dir_from: DirectionCornerThe corner or side from which the gradient starts.
dir_to: DirectionCornerThe corner or side at which the gradient ends.
Trait Implementations§
Source§impl Clone for DirectionCorners
impl Clone for DirectionCorners
Source§fn clone(&self) -> DirectionCorners
fn clone(&self) -> DirectionCorners
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 moreSource§impl Debug for DirectionCorners
impl Debug for DirectionCorners
Source§impl Hash for DirectionCorners
impl Hash for DirectionCorners
Source§impl Ord for DirectionCorners
impl Ord for DirectionCorners
Source§fn cmp(&self, other: &DirectionCorners) -> Ordering
fn cmp(&self, other: &DirectionCorners) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DirectionCorners
impl PartialEq for DirectionCorners
Source§fn eq(&self, other: &DirectionCorners) -> bool
fn eq(&self, other: &DirectionCorners) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for DirectionCorners
impl PartialOrd for DirectionCorners
impl Copy for DirectionCorners
impl Eq for DirectionCorners
impl StructuralPartialEq for DirectionCorners
Auto Trait Implementations§
impl Freeze for DirectionCorners
impl RefUnwindSafe for DirectionCorners
impl Send for DirectionCorners
impl Sync for DirectionCorners
impl Unpin for DirectionCorners
impl UnsafeUnpin for DirectionCorners
impl UnwindSafe for DirectionCorners
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