pub enum BackgroundFill {
FreeformGradient(BackgroundFillFreeformGradient),
Gradient(BackgroundFillGradient),
Solid(BackgroundFillSolid),
// some variants omitted
}
Expand description
Describes a fill of a background
Variants§
FreeformGradient(BackgroundFillFreeformGradient)
Describes a freeform gradient fill of a background
Gradient(BackgroundFillGradient)
Describes a gradient fill of a background
Solid(BackgroundFillSolid)
Describes a solid fill of a background
Implementations§
Trait Implementations§
Source§impl AsRef<BackgroundFill> for BackgroundFill
impl AsRef<BackgroundFill> for BackgroundFill
Source§fn as_ref(&self) -> &BackgroundFill
fn as_ref(&self) -> &BackgroundFill
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for BackgroundFill
impl Clone for BackgroundFill
Source§fn clone(&self) -> BackgroundFill
fn clone(&self) -> BackgroundFill
Returns a copy 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 BackgroundFill
impl Debug for BackgroundFill
Source§impl Default for BackgroundFill
impl Default for BackgroundFill
Source§fn default() -> BackgroundFill
fn default() -> BackgroundFill
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BackgroundFill
impl<'de> Deserialize<'de> for BackgroundFill
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 BackgroundFill
impl RefUnwindSafe for BackgroundFill
impl Send for BackgroundFill
impl Sync for BackgroundFill
impl Unpin for BackgroundFill
impl UnwindSafe for BackgroundFill
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