pub enum StyleBackgroundContent {
LinearGradient(LinearGradient),
RadialGradient(RadialGradient),
Image(CssImageId),
Color(ColorU),
}
Variants§
Implementations§
Source§impl StyleBackgroundContent
impl StyleBackgroundContent
pub fn get_css_image_id(&self) -> Option<&CssImageId>
Trait Implementations§
Source§impl Clone for StyleBackgroundContent
impl Clone for StyleBackgroundContent
Source§fn clone(&self) -> StyleBackgroundContent
fn clone(&self) -> StyleBackgroundContent
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 StyleBackgroundContent
impl Debug for StyleBackgroundContent
Source§impl<'a> From<CssImageId> for StyleBackgroundContent
impl<'a> From<CssImageId> for StyleBackgroundContent
Source§fn from(id: CssImageId) -> Self
fn from(id: CssImageId) -> Self
Converts to this type from the input type.
Source§impl From<StyleBackgroundContent> for CssProperty
impl From<StyleBackgroundContent> for CssProperty
Source§fn from(e: StyleBackgroundContent) -> Self
fn from(e: StyleBackgroundContent) -> Self
Converts to this type from the input type.
Source§impl Hash for StyleBackgroundContent
impl Hash for StyleBackgroundContent
Source§impl Ord for StyleBackgroundContent
impl Ord for StyleBackgroundContent
Source§fn cmp(&self, other: &StyleBackgroundContent) -> Ordering
fn cmp(&self, other: &StyleBackgroundContent) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for StyleBackgroundContent
impl PartialEq for StyleBackgroundContent
Source§impl PartialOrd for StyleBackgroundContent
impl PartialOrd for StyleBackgroundContent
impl Eq for StyleBackgroundContent
impl StructuralPartialEq for StyleBackgroundContent
Auto Trait Implementations§
impl Freeze for StyleBackgroundContent
impl RefUnwindSafe for StyleBackgroundContent
impl Send for StyleBackgroundContent
impl Sync for StyleBackgroundContent
impl Unpin for StyleBackgroundContent
impl UnwindSafe for StyleBackgroundContent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)