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
sourceimpl<'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>ⓘNotable traits for SheetCollectionFlusher<'a, S>impl<'a, S> Iterator for SheetCollectionFlusher<'a, S> where
S: StylesheetInDocument + PartialEq + 'static, type Item = (&'a S, SheetRebuildKind);
pub fn flush_origin(&mut self, origin: Origin) -> SheetCollectionFlusher<'_, S>ⓘNotable traits for SheetCollectionFlusher<'a, S>impl<'a, S> Iterator for SheetCollectionFlusher<'a, S> where
S: StylesheetInDocument + PartialEq + 'static, type Item = (&'a S, SheetRebuildKind);
S: StylesheetInDocument + PartialEq + 'static, type Item = (&'a S, SheetRebuildKind);
Returns a flusher for origin
.
sourcepub fn origin_sheets(
&mut self,
origin: Origin
) -> StylesheetCollectionIterator<'_, S>ⓘNotable traits for StylesheetCollectionIterator<'a, S>impl<'a, S> Iterator for StylesheetCollectionIterator<'a, S> where
S: StylesheetInDocument + PartialEq + 'static, type Item = &'a S;
pub fn origin_sheets(
&mut self,
origin: Origin
) -> StylesheetCollectionIterator<'_, S>ⓘNotable traits for StylesheetCollectionIterator<'a, S>impl<'a, S> Iterator for StylesheetCollectionIterator<'a, S> where
S: StylesheetInDocument + PartialEq + 'static, type Item = &'a S;
S: StylesheetInDocument + PartialEq + 'static, type Item = &'a 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> 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> MaybeBoxed<Box<T, Global>> for T
impl<T> MaybeBoxed<Box<T, Global>> for T
sourcefn maybe_boxed(self) -> Box<T, Global>
fn maybe_boxed(self) -> Box<T, Global>
Convert
sourceimpl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
sourcefn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert
sourceimpl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more