#[repr(C)]pub enum StyleObjectFit {
Fill = 0,
Contain = 1,
Cover = 2,
None = 3,
ScaleDown = 4,
}Expand description
CSS object-fit property: how replaced element content is fitted to its box. CSS Images Level 3 §5.5
Variants§
Trait Implementations§
Source§impl Clone for StyleObjectFit
impl Clone for StyleObjectFit
Source§fn clone(&self) -> StyleObjectFit
fn clone(&self) -> StyleObjectFit
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 StyleObjectFit
impl Debug for StyleObjectFit
Source§impl Default for StyleObjectFit
impl Default for StyleObjectFit
Source§fn default() -> StyleObjectFit
fn default() -> StyleObjectFit
Returns the “default value” for a type. Read more
Source§impl FormatAsRustCode for StyleObjectFit
impl FormatAsRustCode for StyleObjectFit
fn format_as_rust_code(&self, _tabs: usize) -> String
Source§impl From<StyleObjectFit> for CssProperty
impl From<StyleObjectFit> for CssProperty
Source§fn from(e: StyleObjectFit) -> Self
fn from(e: StyleObjectFit) -> Self
Converts to this type from the input type.
Source§impl Hash for StyleObjectFit
impl Hash for StyleObjectFit
Source§impl Ord for StyleObjectFit
impl Ord for StyleObjectFit
Source§fn cmp(&self, other: &StyleObjectFit) -> Ordering
fn cmp(&self, other: &StyleObjectFit) -> Ordering
1.21.0 (const: unstable) · 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 StyleObjectFit
impl PartialEq for StyleObjectFit
Source§fn eq(&self, other: &StyleObjectFit) -> bool
fn eq(&self, other: &StyleObjectFit) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for StyleObjectFit
impl PartialOrd for StyleObjectFit
Source§impl PrintAsCssValue for StyleObjectFit
impl PrintAsCssValue for StyleObjectFit
fn print_as_css_value(&self) -> String
impl Copy for StyleObjectFit
impl Eq for StyleObjectFit
impl StructuralPartialEq for StyleObjectFit
Auto Trait Implementations§
impl Freeze for StyleObjectFit
impl RefUnwindSafe for StyleObjectFit
impl Send for StyleObjectFit
impl Sync for StyleObjectFit
impl Unpin for StyleObjectFit
impl UnsafeUnpin for StyleObjectFit
impl UnwindSafe for StyleObjectFit
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