pub struct Gradient {
pub kind: GradientKind,
pub stops: Vec<Stop>,
pub transform: Affine,
}Fields§
§kind: GradientKind§stops: Vec<Stop>§transform: AffineUnit space to document pixels: linear runs from unit (0,0) to (1,0); radial is the unit circle; conical starts along unit +x and turns towards unit +y.
Trait Implementations§
impl StructuralPartialEq for Gradient
Auto Trait Implementations§
impl Forget for Gradient
impl Freeze for Gradient
impl Move for Gradient
impl RefUnwindSafe for Gradient
impl Send for Gradient
impl Sync for Gradient
impl Unpin for Gradient
impl UnsafeUnpin 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