Struct style::servo::media_queries::Expression [] [src]

pub struct Expression(pub ExpressionKind);

A single expression a per:

http://dev.w3.org/csswg/mediaqueries-3/#media1

Methods

impl Expression
[src]

[src]

The kind of expression we're, just for unit testing.

Eventually this will become servo-only.

[src]

Parse a media expression of the form:

(media-feature: media-value)

Only supports width and width ranges for now.

[src]

Evaluate this expression and return whether it matches the current device.

Trait Implementations

impl Clone for Expression
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Expression
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for Expression
[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 Expression
[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 Expression
[src]

[src]

Serialize self in CSS syntax, writing to dest.

[src]

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