Struct rasterize::GradLinear
source · pub struct GradLinear { /* private fields */ }
Expand description
Linear Gradient
Implementations§
source§impl GradLinear
impl GradLinear
pub const GRAD_TYPE: &'static str = "linear-gradient"
pub fn new( stops: impl Into<GradStops>, units: Units, linear_colors: bool, spread: GradSpread, tr: Transform, start: impl Into<Point>, end: impl Into<Point> ) -> Self
sourcepub fn from_json(value: Value) -> Result<Self, SvgParserError>
pub fn from_json(value: Value) -> Result<Self, SvgParserError>
Construct linear gradient from JSON value
Trait Implementations§
source§impl Clone for GradLinear
impl Clone for GradLinear
source§fn clone(&self) -> GradLinear
fn clone(&self) -> GradLinear
Returns a copy 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 GradLinear
impl Debug for GradLinear
source§impl<'de> Deserialize<'de> for GradLinear
impl<'de> Deserialize<'de> for GradLinear
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Paint for GradLinear
impl Paint for GradLinear
source§impl PartialEq for GradLinear
impl PartialEq for GradLinear
source§fn eq(&self, other: &GradLinear) -> bool
fn eq(&self, other: &GradLinear) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for GradLinear
impl Serialize for GradLinear
impl StructuralPartialEq for GradLinear
Auto Trait Implementations§
impl Freeze for GradLinear
impl RefUnwindSafe for GradLinear
impl Send for GradLinear
impl Sync for GradLinear
impl Unpin for GradLinear
impl UnwindSafe for GradLinear
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