pub enum FeatureValue {
Number(f64),
Real(f64),
Dimension(f64, Unit),
Math(Math),
Ratio(f64, f64),
Ident(String),
}Expand description
A value in a media feature.
Variants§
Number(f64)
Real(f64)
A number written with a fraction or an exponent, 1.0: not an
<integer>.
Dimension(f64, Unit)
A length or resolution, as written.
Math(Math)
Ratio(f64, f64)
a / b.
Ident(String)
Trait Implementations§
Source§impl Clone for FeatureValue
impl Clone for FeatureValue
Source§impl Debug for FeatureValue
impl Debug for FeatureValue
Source§impl Display for FeatureValue
impl Display for FeatureValue
Source§impl PartialEq for FeatureValue
impl PartialEq for FeatureValue
impl StructuralPartialEq for FeatureValue
Auto Trait Implementations§
impl Forget for FeatureValue
impl Freeze for FeatureValue
impl Move for FeatureValue
impl RefUnwindSafe for FeatureValue
impl Send for FeatureValue
impl Sync for FeatureValue
impl Unpin for FeatureValue
impl UnsafeUnpin for FeatureValue
impl UnwindSafe for FeatureValue
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