#[repr(C, u8)]pub enum StyleBackgroundSize {
ExactSize([PixelValue; 2]),
Contain,
Cover,
}Expand description
Represents a background-size attribute
Variants§
Implementations§
Source§impl StyleBackgroundSize
impl StyleBackgroundSize
pub fn scale_for_dpi(&mut self, scale_factor: f32)
Trait Implementations§
Source§impl Clone for StyleBackgroundSize
impl Clone for StyleBackgroundSize
Source§fn clone(&self) -> StyleBackgroundSize
fn clone(&self) -> StyleBackgroundSize
Returns a duplicate 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 Default for StyleBackgroundSize
impl Default for StyleBackgroundSize
Source§impl FromIterator<StyleBackgroundSize> for StyleBackgroundSizeVec
impl FromIterator<StyleBackgroundSize> for StyleBackgroundSizeVec
Source§fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = StyleBackgroundSize>,
fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = StyleBackgroundSize>,
Creates a value from an iterator. Read more
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
Source§impl PrintAsCssValue for StyleBackgroundSize
impl PrintAsCssValue for StyleBackgroundSize
fn print_as_css_value(&self) -> String
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