Struct style::invalidation::media_queries::EffectiveMediaQueryResults
[−]
[src]
pub struct EffectiveMediaQueryResults { /* fields omitted */ }
A struct that holds the result of a media query evaluation pass for the media queries that evaluated successfully.
Methods
impl EffectiveMediaQueryResults
[src]
pub fn new() -> Self
[src]
Trivially constructs an empty EffectiveMediaQueryResults
.
pub fn clear(&mut self)
[src]
Resets the results, using an empty key.
pub fn was_effective<T>(&self, item: &T) -> bool where
T: ToMediaListKey,
[src]
T: ToMediaListKey,
Returns whether a given item was known to be effective when the results were cached.
pub fn saw_effective<T>(&mut self, item: &T) where
T: ToMediaListKey,
[src]
T: ToMediaListKey,
Notices that an effective item has been seen, and caches it as matching.
Trait Implementations
impl Debug for EffectiveMediaQueryResults
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl MallocSizeOf for EffectiveMediaQueryResults
[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 EffectiveMediaQueryResults
[src]
fn eq(&self, __arg_0: &EffectiveMediaQueryResults) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &EffectiveMediaQueryResults) -> bool
[src]
This method tests for !=
.