Struct usvg::RadialGradient
source · [−]pub struct RadialGradient {
pub id: String,
pub cx: f64,
pub cy: f64,
pub r: PositiveNumber,
pub fx: f64,
pub fy: f64,
pub base: BaseGradient,
}
Expand description
A radial gradient.
radialGradient
element in SVG.
Fields
id: String
Element’s ID.
Taken from the SVG itself. Can’t be empty.
cx: f64
cy: f64
r: PositiveNumber
fx: f64
fy: f64
base: BaseGradient
Base gradient data.
Trait Implementations
sourceimpl Clone for RadialGradient
impl Clone for RadialGradient
sourcefn clone(&self) -> RadialGradient
fn clone(&self) -> RadialGradient
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
sourceimpl Debug for RadialGradient
impl Debug for RadialGradient
sourceimpl Deref for RadialGradient
impl Deref for RadialGradient
type Target = BaseGradient
type Target = BaseGradient
The resulting type after dereferencing.
Auto Trait Implementations
impl RefUnwindSafe for RadialGradient
impl Send for RadialGradient
impl Sync for RadialGradient
impl Unpin for RadialGradient
impl UnwindSafe for RadialGradient
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more