pub struct DocumentStylesheetSet<S> where
    S: StylesheetInDocument + PartialEq + 'static, 
{ collections: PerOrigin<SheetCollection<S>>, invalidations: StylesheetInvalidationSet, }
Expand description

The set of stylesheets effective for a given document.

Fields

collections: PerOrigin<SheetCollection<S>>

The collections of sheets per each origin.

invalidations: StylesheetInvalidationSet

The invalidations for stylesheets added or removed from this document.

Implementations

Create a new empty DocumentStylesheetSet.

Appends a new stylesheet to the current set.

No device implies not computing invalidations.

Insert a given stylesheet before another stylesheet in the document.

Remove a given stylesheet from the set.

Notify the set that a rule from a given stylesheet has changed somehow.

Returns the number of stylesheets in the set.

Returns the count of stylesheets for a given origin.

Returns the indexth stylesheet in the set for the given origin.

Returns whether the given set has changed from the last flush.

Flush the current set, unmarking it as dirty, and returns a DocumentStylesheetFlusher in order to rebuild the stylist.

Flush stylesheets, but without running any of the invalidation passes.

Return an iterator over the flattened view of all the stylesheets.

Mark the stylesheets for the specified origin as dirty, because something external may have invalidated it.

Trait Implementations

Measure the heap usage of all descendant heap-allocated structures, but not the space taken up by the value itself. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Convert

Convert

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more