#[non_exhaustive]pub struct BackgroundFillGradient {
pub top_color: u32,
pub bottom_color: u32,
pub rotation_angle: u16,
}Expand description
A background filled with a two-colour gradient.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.top_color: u32Top colour of the gradient in RGB24 format.
bottom_color: u32Bottom colour of the gradient in RGB24 format.
rotation_angle: u16Clockwise rotation angle of the background fill, in degrees (0–359).
Trait Implementations§
Source§impl Clone for BackgroundFillGradient
impl Clone for BackgroundFillGradient
Source§fn clone(&self) -> BackgroundFillGradient
fn clone(&self) -> BackgroundFillGradient
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 BackgroundFillGradient
impl Debug for BackgroundFillGradient
Source§impl Default for BackgroundFillGradient
impl Default for BackgroundFillGradient
Source§fn default() -> BackgroundFillGradient
fn default() -> BackgroundFillGradient
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BackgroundFillGradient
impl<'de> Deserialize<'de> for BackgroundFillGradient
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 BackgroundFillGradient
impl RefUnwindSafe for BackgroundFillGradient
impl Send for BackgroundFillGradient
impl Sync for BackgroundFillGradient
impl Unpin for BackgroundFillGradient
impl UnsafeUnpin for BackgroundFillGradient
impl UnwindSafe for BackgroundFillGradient
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