Struct rasterize::GradRadial
source · pub struct GradRadial { /* private fields */ }
Expand description
Radial Gradient
Implementations§
source§impl GradRadial
impl GradRadial
pub const GRAD_TYPE: &'static str = "radial-gradient"
pub fn new( stops: impl Into<GradStops>, units: Units, linear_colors: bool, spread: GradSpread, tr: Transform, center: impl Into<Point>, radius: Scalar, fcenter: impl Into<Point>, fradius: Scalar ) -> Self
sourcepub fn from_json(value: Value) -> Result<Self, SvgParserError>
pub fn from_json(value: Value) -> Result<Self, SvgParserError>
Construct radial gradient from JSON value
Trait Implementations§
source§impl Clone for GradRadial
impl Clone for GradRadial
source§fn clone(&self) -> GradRadial
fn clone(&self) -> GradRadial
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 GradRadial
impl Debug for GradRadial
source§impl<'de> Deserialize<'de> for GradRadial
impl<'de> Deserialize<'de> for GradRadial
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 GradRadial
impl Paint for GradRadial
source§impl PartialEq for GradRadial
impl PartialEq for GradRadial
source§fn eq(&self, other: &GradRadial) -> bool
fn eq(&self, other: &GradRadial) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for GradRadial
impl Serialize for GradRadial
impl StructuralPartialEq for GradRadial
Auto Trait Implementations§
impl Freeze for GradRadial
impl RefUnwindSafe for GradRadial
impl Send for GradRadial
impl Sync for GradRadial
impl Unpin for GradRadial
impl UnwindSafe for GradRadial
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