Skip to main content

generate_lookup

Function generate_lookup 

Source
pub fn generate_lookup(
    definitions: &[StructureDefinition],
    search_parameters: &[SearchParameter],
) -> String
Expand description

Emits the Rust source for the compiled lookup table.

The table is the sorted set of canonical URLs whose parameters are single valued, so a lookup is a binary search over static data with no initialisation. Absence means “not known to be single”, which is the answer a caller should act on anyway for a URL it has never heard of.