pub enum RadialKind {
Radial {
bias: f32,
scale: f32,
},
Strip {
scaled_r0_squared: f32,
},
Focal {
focal_data: FocalData,
fp0: f32,
fp1: f32,
},
}
Expand description
A radial gradient.
Variants§
Radial
A radial gradient, i.e. the start and end center points are the same.
Fields
Strip
A strip gradient, i.e. the start and end radius are the same.
Focal
A general, two-point conical gradient.
Implementations§
Source§impl RadialKind
impl RadialKind
Sourcepub fn has_undefined(&self) -> bool
pub fn has_undefined(&self) -> bool
Whether the gradient is undefined at any location.
Trait Implementations§
Source§impl Clone for RadialKind
impl Clone for RadialKind
Source§fn clone(&self) -> RadialKind
fn clone(&self) -> RadialKind
Returns a duplicate 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 RadialKind
impl Debug for RadialKind
Source§impl PartialEq for RadialKind
impl PartialEq for RadialKind
impl Copy for RadialKind
impl StructuralPartialEq for RadialKind
Auto Trait Implementations§
impl Freeze for RadialKind
impl RefUnwindSafe for RadialKind
impl Send for RadialKind
impl Sync for RadialKind
impl Unpin for RadialKind
impl UnwindSafe for RadialKind
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