pub enum VectorGradient {
Linear(VectorLinearGradient),
Radial(VectorRadialGradient),
}Expand description
A linear or radial gradient resolved to absolute SVG/viewBox space. The
stored axis/centre coordinates live in the gradient’s own coordinate
system; absolute_to_local maps a point in absolute SVG space back into
that system so per-vertex evaluation is one matrix-multiply away.
Variants§
Linear(VectorLinearGradient)
Radial(VectorRadialGradient)
Trait Implementations§
Source§impl Clone for VectorGradient
impl Clone for VectorGradient
Source§fn clone(&self) -> VectorGradient
fn clone(&self) -> VectorGradient
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 VectorGradient
impl Debug for VectorGradient
Source§impl PartialEq for VectorGradient
impl PartialEq for VectorGradient
Source§fn eq(&self, other: &VectorGradient) -> bool
fn eq(&self, other: &VectorGradient) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for VectorGradient
Auto Trait Implementations§
impl Freeze for VectorGradient
impl RefUnwindSafe for VectorGradient
impl Send for VectorGradient
impl Sync for VectorGradient
impl Unpin for VectorGradient
impl UnsafeUnpin for VectorGradient
impl UnwindSafe for VectorGradient
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.