pub struct LinearGradient {
pub direction: Direction,
pub extend_mode: ExtendMode,
pub stops: Vec<GradientStopPre>,
}
Fields§
§direction: Direction
§extend_mode: ExtendMode
§stops: Vec<GradientStopPre>
Trait Implementations§
Source§impl Clone for LinearGradient
impl Clone for LinearGradient
Source§fn clone(&self) -> LinearGradient
fn clone(&self) -> LinearGradient
Returns a copy 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 LinearGradient
impl Debug for LinearGradient
Source§impl Display for LinearGradient
impl Display for LinearGradient
Source§impl Hash for LinearGradient
impl Hash for LinearGradient
Source§impl Ord for LinearGradient
impl Ord for LinearGradient
Source§fn cmp(&self, other: &LinearGradient) -> Ordering
fn cmp(&self, other: &LinearGradient) -> Ordering
1.21.0 · 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 LinearGradient
impl PartialEq for LinearGradient
Source§impl PartialOrd for LinearGradient
impl PartialOrd for LinearGradient
impl Eq for LinearGradient
impl StructuralPartialEq for LinearGradient
Auto Trait Implementations§
impl Freeze for LinearGradient
impl RefUnwindSafe for LinearGradient
impl Send for LinearGradient
impl Sync for LinearGradient
impl Unpin for LinearGradient
impl UnwindSafe for LinearGradient
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)