pub struct EffectiveMediaQueryResults {
set: FxHashSet<MediaListKey>,
}
Expand description
A struct that holds the result of a media query evaluation pass for the media queries that evaluated successfully.
Fields§
§set: FxHashSet<MediaListKey>
The set of media lists that matched last time.
Implementations§
source§impl EffectiveMediaQueryResults
impl EffectiveMediaQueryResults
sourcepub fn was_effective<T>(&self, item: &T) -> boolwhere
T: ToMediaListKey,
pub fn was_effective<T>(&self, item: &T) -> boolwhere
T: ToMediaListKey,
Returns whether a given item was known to be effective when the results were cached.
sourcepub fn saw_effective<T>(&mut self, item: &T)where
T: ToMediaListKey,
pub fn saw_effective<T>(&mut self, item: &T)where
T: ToMediaListKey,
Notices that an effective item has been seen, and caches it as matching.
Trait Implementations§
source§impl Clone for EffectiveMediaQueryResults
impl Clone for EffectiveMediaQueryResults
source§fn clone(&self) -> EffectiveMediaQueryResults
fn clone(&self) -> EffectiveMediaQueryResults
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for EffectiveMediaQueryResults
impl Debug for EffectiveMediaQueryResults
source§impl MallocSizeOf for EffectiveMediaQueryResults
impl MallocSizeOf for EffectiveMediaQueryResults
source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
impl StructuralPartialEq for EffectiveMediaQueryResults
Auto Trait Implementations§
impl Freeze for EffectiveMediaQueryResults
impl RefUnwindSafe for EffectiveMediaQueryResults
impl Send for EffectiveMediaQueryResults
impl Sync for EffectiveMediaQueryResults
impl Unpin for EffectiveMediaQueryResults
impl UnwindSafe for EffectiveMediaQueryResults
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert