pub struct Gradient<'a> {
pub start: Color<'a>,
pub end: Option<Color<'a>>,
pub opacity: Opacity<'a>,
}
Expand description
A two color gradient value.
Fields§
§start: Color<'a>
The start color.
end: Option<Color<'a>>
The end color.
opacity: Opacity<'a>
The opacity of the gradient.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Gradient<'a>
impl<'a> RefUnwindSafe for Gradient<'a>
impl<'a> Send for Gradient<'a>
impl<'a> Sync for Gradient<'a>
impl<'a> Unpin for Gradient<'a>
impl<'a> UnwindSafe for Gradient<'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