Struct usvgr::BaseGradient
source · [−]pub struct BaseGradient {
pub units: Units,
pub transform: Transform,
pub spread_method: SpreadMethod,
pub stops: Vec<Stop>,
}Expand description
A generic gradient.
Fields
units: UnitsCoordinate system units.
gradientUnits in SVG.
transform: TransformGradient transform.
gradientTransform in SVG.
spread_method: SpreadMethodGradient spreading method.
spreadMethod in SVG.
stops: Vec<Stop>A list of stop elements.
Trait Implementations
sourceimpl Clone for BaseGradient
impl Clone for BaseGradient
sourcefn clone(&self) -> BaseGradient
fn clone(&self) -> BaseGradient
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
Auto Trait Implementations
impl RefUnwindSafe for BaseGradient
impl Send for BaseGradient
impl Sync for BaseGradient
impl Unpin for BaseGradient
impl UnwindSafe for BaseGradient
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more