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

The qualifier for this query.

The media type for this query, that can be known, unknown, or "all".

The set of expressions that this media query contains.

Methods

impl MediaQuery
[src]

[src]

Parse a media query given css input.

Returns an error if any of the expressions is unknown.

Trait Implementations

impl Clone for MediaQuery
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for MediaQuery
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for MediaQuery
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl MallocSizeOf for MediaQuery
[src]

[src]

Measure the heap usage of all descendant heap-allocated structures, but not the space taken up by the value itself. Read more

impl ToCss for MediaQuery
[src]

[src]

Serialize self in CSS syntax, writing to dest.

[src]

Serialize self in CSS syntax and return a string. Read more