pub struct Gradient {
pub direction: GradientCoordinates,
pub colors: Vec<Solid>,
}
Fields§
§direction: GradientCoordinates
§colors: Vec<Solid>
Trait Implementations§
Source§impl PartialOrd for Gradient
impl PartialOrd for Gradient
Source§impl TryFrom<&str> for Gradient
Implements the TryFrom
trait to convert a string into a GradientCoordinates
object.
The string can represent an angle (e.g., “45deg”) or a direction (e.g., “to right”).
impl TryFrom<&str> for Gradient
Implements the TryFrom
trait to convert a string into a GradientCoordinates
object.
The string can represent an angle (e.g., “45deg”) or a direction (e.g., “to right”).
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