Skip to main content

generate_subdecoder_flat_dispatch

Function generate_subdecoder_flat_dispatch 

Source
pub fn generate_subdecoder_flat_dispatch(
    sd: &ValidatedSubDecoder,
    handler_mod: &str,
    ctx_type: &str,
    groups: &HashMap<String, String>,
    instr_type: Option<&str>,
    invalid_handler: Option<&str>,
    strategy: Dispatch,
) -> Result<String, Vec<Error>>
Expand description

Generate a flat dispatch function for a sub-decoder. Uses the explicit flat_lut or flat_match strategy. Errors on raw-value ambiguity.