Struct cdp::css::MediaQueryExpression
[−]
[src]
pub struct MediaQueryExpression<'a> { pub value: f64, pub unit: Cow<'a, str>, pub feature: Cow<'a, str>, pub value_range: Option<SourceRange>, pub computed_length: Option<f64>, }
[Experimental] Media query expression descriptor.
Fields
value: f64
Media query expression value.
unit: Cow<'a, str>
Media query expression units.
feature: Cow<'a, str>
Media query expression feature.
value_range: Option<SourceRange>
The associated range of the value text in the enclosing stylesheet (if available).
computed_length: Option<f64>
Computed length of media query expression (if applicable).
Trait Implementations
impl<'a> Clone for MediaQueryExpression<'a>
[src]
fn clone(&self) -> MediaQueryExpression<'a>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a> Debug for MediaQueryExpression<'a>
[src]
impl<'a> PartialEq for MediaQueryExpression<'a>
[src]
fn eq(&self, __arg_0: &MediaQueryExpression<'a>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &MediaQueryExpression<'a>) -> bool
[src]
This method tests for !=
.