pub enum Gradient {
Linear(LinearGradient),
}
Expand description
A fill which transitions colors progressively along a direction, either linearly, radially (TBD), or conically (TBD).
Variants§
Linear(LinearGradient)
A linear gradient interpolates colors along a direction at a specific angle.
Implementations§
Trait Implementations§
Source§impl From<LinearGradient> for Gradient
impl From<LinearGradient> for Gradient
Source§fn from(gradient: LinearGradient) -> Self
fn from(gradient: LinearGradient) -> Self
Converts to this type from the input type.
impl Copy for Gradient
impl StructuralPartialEq for Gradient
Auto Trait Implementations§
impl Freeze for Gradient
impl RefUnwindSafe for Gradient
impl Send for Gradient
impl Sync for Gradient
impl Unpin for Gradient
impl UnwindSafe for Gradient
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