Skip to main content

build_component_index

Function build_component_index 

Source
pub fn build_component_index(protocol: &WebUIProtocol) -> HashMap<String, u32>
Expand description

Build a deterministic component-name → bit-index map from the protocol.

Derives names from fragment keys (hyphenated = custom element) since that is the source of truth regardless of whether a plugin populated protocol.components. Components are sorted alphabetically; index = position in that order.