/// Parses a WebAssembly global type from the input.
///
/// See <https://webassembly.github.io/spec/core/binary/types.html#global-types>
Parses a WebAssembly global type from the input.
See
Parses a WebAssembly global type from the input . See
pub fn parse_global_type(input: &[u8]) -> IResult<&[u8], GlobalType> {
    map(
        tuple((
            parse_value_type,
            alt((
                map(match_byte(0x00), |_| Mutability::Immutable),
                map(match_byte(0x01), |_| Mutability::Mutable),
            )),
        )),
        |(kind, mutability)| GlobalType::new(kind, mutability),
    )(input)
}
pub fn parse_global_type ( input : & [ u8 ] ) -> IResult < & [ u8 ] , GlobalType > { map ( tuple ( ( parse_value_type , alt ( ( map ( match_byte ( 0x00 ) , | _ | Mutability :: Immutable ) , map ( match_byte ( 0x01 ) , | _ | Mutability :: Mutable ) , ) ) , ) ) , | ( kind , mutability ) | GlobalType :: new ( kind , mutability ) , ) ( input ) }
Parses a WebAssembly global type from the input.
Parses a WebAssembly global type from the input .
input
&[u8]