/// Parses a WebAssembly variable instruction from the input.
///
/// See <https://webassembly.github.io/spec/core/binary/instructions.html#variable-instructions>
Parses a WebAssembly variable instruction from the input.
See
Parses a WebAssembly variable instruction from the input . See
pub fn parse_variable_instruction(input: &[u8]) -> IResult<&[u8], VariableInstruction> {
    alt((
        map(
            preceded(match_byte(0x20), parse_u32),
            VariableInstruction::LocalGet,
        ),
        map(
            preceded(match_byte(0x21), parse_u32),
            VariableInstruction::LocalSet,
        ),
        map(
            preceded(match_byte(0x22), parse_u32),
            VariableInstruction::LocalTee,
        ),
        map(
            preceded(match_byte(0x23), parse_u32),
            VariableInstruction::GlobalGet,
        ),
        map(
            preceded(match_byte(0x24), parse_u32),
            VariableInstruction::GlobalSet,
        ),
    ))(input)
}
pub fn parse_variable_instruction ( input : & [ u8 ] ) -> IResult < & [ u8 ] , VariableInstruction > { alt ( ( map ( preceded ( match_byte ( 0x20 ) , parse_u32 ) , VariableInstruction :: LocalGet , ) , map ( preceded ( match_byte ( 0x21 ) , parse_u32 ) , VariableInstruction :: LocalSet , ) , map ( preceded ( match_byte ( 0x22 ) , parse_u32 ) , VariableInstruction :: LocalTee , ) , map ( preceded ( match_byte ( 0x23 ) , parse_u32 ) , VariableInstruction :: GlobalGet , ) , map ( preceded ( match_byte ( 0x24 ) , parse_u32 ) , VariableInstruction :: GlobalSet , ) , ) ) ( input ) }
Parses a WebAssembly variable instruction from the input.
Parses a WebAssembly variable instruction from the input .
input
&[u8]