#[non_exhaustive]pub enum MfValue {
Number(f64),
Dimension {
value: f64,
unit: String,
},
Ident(String),
Ratio {
numerator: u32,
denominator: u32,
},
}Expand description
<mf-value> = <number> | <dimension> | <ident> | <ratio>
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Number(f64)
<number>
Dimension
<dimension>
Ident(String)
<ident>
Ratio
<ratio> = <number [0,∞]> <number [0,∞]>, restricted here to
non-negative integers, matching typical media-feature usage
(e.g. (aspect-ratio: 16/9)).
Trait Implementations§
impl StructuralPartialEq for MfValue
Auto Trait Implementations§
impl Freeze for MfValue
impl RefUnwindSafe for MfValue
impl Send for MfValue
impl Sync for MfValue
impl Unpin for MfValue
impl UnsafeUnpin for MfValue
impl UnwindSafe for MfValue
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