Skip to main content

value_sets

Function value_sets 

Source
pub fn value_sets(
    tables: &[TableModel<'_>],
) -> Result<Vec<&'static ValueSetDesc>, CodegenError>
Expand description

Distinct named value sets (WordEnum variants, flag bits, EventSet listener bits) the tables carry, in first-use order. Sets sharing a name must be identical; names must spell identifiers, every emitted NV_<SET>_<VALUE> constant must be unique across all sets and clear of the NV_TABLE_* namespace, and every value must fit its field once encoded.