Skip to main content

Module style_groups

Module style_groups 

Source
Expand description

Algorithm-neutral output types for the style-chunking pipeline.

StyleGroups is the cell type both algorithms — the default (“loose”) one in super::style_groups_loose and the graph-based one in super::style_groups_graph — produce. Living here means neither algorithm has to import from the other.

Structs§

F32TaskInput
Wrapper around an f32 that implements [TaskInput] (and the other derives the StyleGroupsAlgorithm enum needs) by going through the IEEE-754 bit pattern. Use F32TaskInput::get / F32TaskInput::from at the boundary; do not match on the inner u32 directly.
StyleGroups
Styling must not be duplicated in the application. The simplest way to achieve this is to put every styling chunk item into a separate chunk. That works, but isn’t efficient since it would cause a lot of requests. Instead, multiple chunk items are grouped together and placed in a single shared chunk. StyleGroups specifies how chunk items are grouped together.
StyleGroupsConfig
StyleItemInfo
Per-item metadata produced by the style chunking algorithms.

Enums§

StyleGroupsAlgorithm
Selects the algorithm used to compute StyleGroups.