style::stylist

Trait CascadeDataCacheEntry

Source
trait CascadeDataCacheEntry: Sized {
    // Required method
    fn rebuild<S>(
        device: &Device,
        quirks_mode: QuirksMode,
        collection: SheetCollectionFlusher<'_, S>,
        guard: &SharedRwLockReadGuard<'_>,
        old_entry: &Self,
    ) -> Result<Arc<Self>, AllocErr>
       where S: StylesheetInDocument + PartialEq + 'static;
}

Required Methods§

Source

fn rebuild<S>( device: &Device, quirks_mode: QuirksMode, collection: SheetCollectionFlusher<'_, S>, guard: &SharedRwLockReadGuard<'_>, old_entry: &Self, ) -> Result<Arc<Self>, AllocErr>
where S: StylesheetInDocument + PartialEq + 'static,

Rebuilds the cascade data for the new stylesheet collection. The collection is guaranteed to be dirty.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§