pub struct ConicGradientDesc {
pub common: GradientCommonDesc,
pub center: [f32; 2],
pub start_angle_radians: f32,
}Fields§
§common: GradientCommonDesc§center: [f32; 2]§start_angle_radians: f32Implementations§
Source§impl ConicGradientDesc
impl ConicGradientDesc
pub fn new( center: [f32; 2], start_angle_radians: f32, stops: impl Into<GradientStops>, ) -> Self
pub fn with_units(self, units: GradientUnits) -> Self
pub fn with_spread(self, spread: SpreadMode) -> Self
pub fn with_interpolation(self, interpolation: ColorInterpolation) -> Self
Trait Implementations§
Source§impl Clone for ConicGradientDesc
impl Clone for ConicGradientDesc
Source§fn clone(&self) -> ConicGradientDesc
fn clone(&self) -> ConicGradientDesc
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 moreAuto Trait Implementations§
impl Freeze for ConicGradientDesc
impl RefUnwindSafe for ConicGradientDesc
impl Send for ConicGradientDesc
impl Sync for ConicGradientDesc
impl Unpin for ConicGradientDesc
impl UnsafeUnpin for ConicGradientDesc
impl UnwindSafe for ConicGradientDesc
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