Struct style::media_queries::MediaQuery
[−]
[src]
pub struct MediaQuery { pub qualifier: Option<Qualifier>, pub media_type: MediaQueryType, pub expressions: Vec<Expression>, }
A media query.
Fields
qualifier: Option<Qualifier>
The qualifier for this query.
media_type: MediaQueryType
The media type for this query, that can be known, unknown, or "all".
expressions: Vec<Expression>
The set of expressions that this media query contains.
Methods
impl MediaQuery
[src]
pub fn parse<'i, 't>(
context: &ParserContext,
input: &mut Parser<'i, 't>
) -> Result<MediaQuery, ParseError<'i>>
[src]
context: &ParserContext,
input: &mut Parser<'i, 't>
) -> Result<MediaQuery, ParseError<'i>>
Parse a media query given css input.
Returns an error if any of the expressions is unknown.
Trait Implementations
impl Clone for MediaQuery
[src]
fn clone(&self) -> MediaQuery
[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 Debug for MediaQuery
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for MediaQuery
[src]
fn eq(&self, __arg_0: &MediaQuery) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &MediaQuery) -> bool
[src]
This method tests for !=
.
impl MallocSizeOf for MediaQuery
[src]
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
[src]
Measure the heap usage of all descendant heap-allocated structures, but not the space taken up by the value itself. Read more