Struct style::invalidation::media_queries::MediaListKey [] [src]

pub struct MediaListKey(_);

A key for a given media query result.

NOTE: It happens to be the case that all the media lists we care about happen to have a stable address, so we can just use an opaque pointer to represent them.

Also, note that right now when a rule or stylesheet is removed, we do a full style flush, so there's no need to worry about other item created with the same pointer address.

If this changes, though, we may need to remove the item from the cache if present before it goes away.

Methods

impl MediaListKey
[src]

[src]

Create a MediaListKey from a raw usize.

Trait Implementations

impl Clone for MediaListKey
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for MediaListKey
[src]

impl Debug for MediaListKey
[src]

[src]

Formats the value using the given formatter. Read more

impl Eq for MediaListKey
[src]

impl Hash for MediaListKey
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

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

[src]

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

[src]

This method tests for !=.