Skip to main content

Module index_map

Module index_map 

Source
Expand description

serde adapter: index maps as JSON objects with decimal string keys.

The web UI addresses ports by object key (dmx_ports["0"]), while serde-json-core would emit integer keys as bare digits — invalid JSON that browsers reject. Serializing through String<N> and parsing the keys back keeps both directions valid.

Functions§

deserialize
Deserialize {"0": …, "1": …} back into FnvIndexMap<u8, T, N>.
serialize
Serialize FnvIndexMap<u8, T, N> as {"0": …, "1": …}.