Struct style::stylesheet_set::DocumentStylesheetFlusher
source · pub struct DocumentStylesheetFlusher<'a, S>where
S: StylesheetInDocument + PartialEq + 'static,{
collections: &'a mut PerOrigin<SheetCollection<S>>,
had_invalidations: bool,
}
Expand description
A struct to iterate over the different stylesheets to be flushed.
Fields§
§collections: &'a mut PerOrigin<SheetCollection<S>>
§had_invalidations: bool
Implementations§
source§impl<'a, S> DocumentStylesheetFlusher<'a, S>where
S: StylesheetInDocument + PartialEq + 'static,
impl<'a, S> DocumentStylesheetFlusher<'a, S>where
S: StylesheetInDocument + PartialEq + 'static,
sourcepub fn flush_origin(&mut self, origin: Origin) -> SheetCollectionFlusher<'_, S>
pub fn flush_origin(&mut self, origin: Origin) -> SheetCollectionFlusher<'_, S>
Returns a flusher for origin
.
sourcepub fn origin_sheets(
&mut self,
origin: Origin,
) -> StylesheetCollectionIterator<'_, S> ⓘ
pub fn origin_sheets( &mut self, origin: Origin, ) -> StylesheetCollectionIterator<'_, S> ⓘ
Returns the list of stylesheets for origin
.
Only used for UA sheets.
sourcepub fn had_invalidations(&self) -> bool
pub fn had_invalidations(&self) -> bool
Returns whether any DOM invalidations were processed as a result of the stylesheet flush.
Auto Trait Implementations§
impl<'a, S> Freeze for DocumentStylesheetFlusher<'a, S>
impl<'a, S> RefUnwindSafe for DocumentStylesheetFlusher<'a, S>where
S: RefUnwindSafe,
impl<'a, S> Send for DocumentStylesheetFlusher<'a, S>where
S: Send,
impl<'a, S> Sync for DocumentStylesheetFlusher<'a, S>where
S: Sync,
impl<'a, S> Unpin for DocumentStylesheetFlusher<'a, S>
impl<'a, S> !UnwindSafe for DocumentStylesheetFlusher<'a, S>
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> 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