pub enum StyleBackgroundSize {
ExactSize(PixelValue, PixelValue),
Contain,
Cover,
}
Expand description
Represents a background-size
attribute
Variants§
Trait Implementations§
Source§impl Clone for StyleBackgroundSize
impl Clone for StyleBackgroundSize
Source§fn clone(&self) -> StyleBackgroundSize
fn clone(&self) -> StyleBackgroundSize
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 StyleBackgroundSize
impl Debug for StyleBackgroundSize
Source§impl From<StyleBackgroundSize> for CssProperty
impl From<StyleBackgroundSize> for CssProperty
Source§fn from(e: StyleBackgroundSize) -> Self
fn from(e: StyleBackgroundSize) -> Self
Converts to this type from the input type.
Source§impl Hash for StyleBackgroundSize
impl Hash for StyleBackgroundSize
Source§impl Ord for StyleBackgroundSize
impl Ord for StyleBackgroundSize
Source§fn cmp(&self, other: &StyleBackgroundSize) -> Ordering
fn cmp(&self, other: &StyleBackgroundSize) -> 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 StyleBackgroundSize
impl PartialEq for StyleBackgroundSize
Source§impl PartialOrd for StyleBackgroundSize
impl PartialOrd for StyleBackgroundSize
impl Copy for StyleBackgroundSize
impl Eq for StyleBackgroundSize
impl StructuralPartialEq for StyleBackgroundSize
Auto Trait Implementations§
impl Freeze for StyleBackgroundSize
impl RefUnwindSafe for StyleBackgroundSize
impl Send for StyleBackgroundSize
impl Sync for StyleBackgroundSize
impl Unpin for StyleBackgroundSize
impl UnwindSafe for StyleBackgroundSize
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
)