pub struct ConicGradientPayload {
pub center: LayoutPoint,
pub angle: f32,
pub extend_mode: ExtendMode,
pub stops: Vec<GradientStop>,
}Fields§
§center: LayoutPoint§angle: f32Starting angle in radians. Sweep is always clockwise.
extend_mode: ExtendMode§stops: Vec<GradientStop>Trait Implementations§
Source§impl Clone for ConicGradientPayload
impl Clone for ConicGradientPayload
Source§fn clone(&self) -> ConicGradientPayload
fn clone(&self) -> ConicGradientPayload
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 ConicGradientPayload
impl Debug for ConicGradientPayload
Source§impl<'de> Deserialize<'de> for ConicGradientPayload
impl<'de> Deserialize<'de> for ConicGradientPayload
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
Auto Trait Implementations§
impl Freeze for ConicGradientPayload
impl RefUnwindSafe for ConicGradientPayload
impl Send for ConicGradientPayload
impl Sync for ConicGradientPayload
impl Unpin for ConicGradientPayload
impl UnsafeUnpin for ConicGradientPayload
impl UnwindSafe for ConicGradientPayload
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