pub struct GradientDef {
pub id: String,
pub start: String,
pub end: String,
pub mid: Option<String>,
pub dir: f64,
pub radial: bool,
pub stops: Vec<GradientStop>,
pub cx: f64,
pub cy: f64,
pub fx: f64,
pub fy: f64,
pub r: f64,
}Expand description
Gradient definition for SVG output.
Fields§
§id: String§start: String§end: String§mid: Option<String>§dir: f64§radial: bool§stops: Vec<GradientStop>§cx: f64§cy: f64§fx: f64§fy: f64§r: f64Trait Implementations§
Source§impl Clone for GradientDef
impl Clone for GradientDef
Source§fn clone(&self) -> GradientDef
fn clone(&self) -> GradientDef
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GradientDef
impl Debug for GradientDef
Auto Trait Implementations§
impl Freeze for GradientDef
impl RefUnwindSafe for GradientDef
impl Send for GradientDef
impl Sync for GradientDef
impl Unpin for GradientDef
impl UnsafeUnpin for GradientDef
impl UnwindSafe for GradientDef
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