/// Parses a WebAssembly reference type from the input.
///
/// See <https://webassembly.github.io/spec/core/binary/types.html#reference-types>
Parses a WebAssembly reference type from the input.
See
Parses a WebAssembly reference type from the input . See
pub fn parse_reference_type(input: &[u8]) -> IResult<&[u8], ReferenceType> {
    alt((
        map(match_byte(0x70), |_| ReferenceType::Function),
        map(match_byte(0x6F), |_| ReferenceType::External),
    ))(input)
}
pub fn parse_reference_type ( input : & [ u8 ] ) -> IResult < & [ u8 ] , ReferenceType > { alt ( ( map ( match_byte ( 0x70 ) , | _ | ReferenceType :: Function ) , map ( match_byte ( 0x6F ) , | _ | ReferenceType :: External ) , ) ) ( input ) }
Parses a WebAssembly reference type from the input.
Parses a WebAssembly reference type from the input .
input
&[u8]