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]
Trait Implementations
impl Clone for MediaListKey
[src]
fn clone(&self) -> MediaListKey
[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 Copy for MediaListKey
[src]
impl Debug for MediaListKey
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Eq for MediaListKey
[src]
impl Hash for MediaListKey
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl MallocSizeOf for MediaListKey
[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
impl PartialEq for MediaListKey
[src]
fn eq(&self, __arg_0: &MediaListKey) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &MediaListKey) -> bool
[src]
This method tests for !=
.