pub struct ResolvedLinearGradient<'a> {
pub start: Point2D<f32, PhysicalPx>,
pub end: Point2D<f32, PhysicalPx>,
pub stops: Cow<'a, [GradientStop]>,
}Expand description
A linear gradient whose stops span the line from start to end.
Fields§
§start: Point2D<f32, PhysicalPx>The point stop position 0 lies on.
end: Point2D<f32, PhysicalPx>The point stop position 1 lies on.
stops: Cow<'a, [GradientStop]>The sanitized color stops.
Trait Implementations§
Source§impl<'a> Clone for ResolvedLinearGradient<'a>
impl<'a> Clone for ResolvedLinearGradient<'a>
Source§fn clone(&self) -> ResolvedLinearGradient<'a>
fn clone(&self) -> ResolvedLinearGradient<'a>
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<'a> Debug for ResolvedLinearGradient<'a>
impl<'a> Debug for ResolvedLinearGradient<'a>
Source§impl<'a> PartialEq for ResolvedLinearGradient<'a>
impl<'a> PartialEq for ResolvedLinearGradient<'a>
impl<'a> StructuralPartialEq for ResolvedLinearGradient<'a>
Auto Trait Implementations§
impl<'a> Freeze for ResolvedLinearGradient<'a>
impl<'a> RefUnwindSafe for ResolvedLinearGradient<'a>
impl<'a> Send for ResolvedLinearGradient<'a>
impl<'a> Sync for ResolvedLinearGradient<'a>
impl<'a> Unpin for ResolvedLinearGradient<'a>
impl<'a> UnsafeUnpin for ResolvedLinearGradient<'a>
impl<'a> UnwindSafe for ResolvedLinearGradient<'a>
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