pub fn parse_parametric_instruction(input: &[u8]) -> IResult<&[u8], ParametricInstruction> {
    alt((
        map(match_byte(0x1A), |_| ParametricInstruction::Drop),
        map(match_byte(0x1B), |_| ParametricInstruction::Select(None)),
        map(
            preceded(match_byte(0x1C), parse_vector(parse_value_type)),
            |value_types| ParametricInstruction::Select(Some(value_types)),
        ),
    ))(input)
}
/// Parses a WebAssembly parametric instruction from the input.
///
/// See <https://webassembly.github.io/spec/core/binary/instructions.html#parametric-instructions>
Parses a WebAssembly parametric instruction from the input.
See
Parses a WebAssembly parametric instruction from the input . See
pub fn parse_parametric_instruction(input: &[u8]) -> IResult<&[u8], ParametricInstruction> {
    alt((
        map(match_byte(0x1A), |_| ParametricInstruction::Drop),
        map(match_byte(0x1B), |_| ParametricInstruction::Select(None)),
        map(
            preceded(match_byte(0x1C), parse_vector(parse_value_type)),
            |value_types| ParametricInstruction::Select(Some(value_types)),
        ),
    ))(input)
}
pub fn parse_parametric_instruction ( input : & [ u8 ] ) -> IResult < & [ u8 ] , ParametricInstruction > { alt ( ( map ( match_byte ( 0x1A ) , | _ | ParametricInstruction :: Drop ) , map ( match_byte ( 0x1B ) , | _ | ParametricInstruction :: Select ( None ) ) , map ( preceded ( match_byte ( 0x1C ) , parse_vector ( parse_value_type ) ) , | value_types | ParametricInstruction :: Select ( Some ( value_types ) ) , ) , ) ) ( input ) }
Parses a WebAssembly parametric instruction from the input.
Parses a WebAssembly parametric instruction from the input .
input
&[u8]
input
&[u8]