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: boolImplementations§
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(&self, origin: Origin) -> impl Iterator<Item = &S>
pub fn origin_sheets(&self, origin: Origin) -> impl Iterator<Item = &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