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

The set of stylesheets effective for a given Shadow Root.

Fields

collection: SheetCollection<S>

The actual style sheets.

invalidations: StylesheetInvalidationSet

The set of invalidations scheduled for this collection.

Implementations

Create a new empty AuthorStylesheetSet.

Whether anything has changed since the last time this was flushed.

Whether the collection is empty.

Returns the indexth stylesheet in the collection of author styles if present.

Returns the number of author stylesheets.

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.

Iterate over the list of stylesheets.

Mark the sheet set dirty, as appropriate.

Flush the stylesheets for this author set.

host is the root of the affected subtree, like the shadow host, for example.

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