pub fn parse_limit(input: &[u8]) -> IResult<&[u8], Limit> {
    alt((
        map(preceded(match_byte(0x00), parse_u32), Limit::unbounded),
        map(
            preceded(match_byte(0x01), tuple((parse_u32, parse_u32))),
            |(min, max)| Limit::bounded(min, max),
        ),
    ))(input)
}
/// Parses a WebAssembly limit from the input.
///
/// See <https://webassembly.github.io/spec/core/binary/types.html#limits>
Parses a WebAssembly limit from the input.
See
Parses a WebAssembly limit from the input . See
pub fn parse_limit(input: &[u8]) -> IResult<&[u8], Limit> {
    alt((
        map(preceded(match_byte(0x00), parse_u32), Limit::unbounded),
        map(
            preceded(match_byte(0x01), tuple((parse_u32, parse_u32))),
            |(min, max)| Limit::bounded(min, max),
        ),
    ))(input)
}
pub fn parse_limit ( input : & [ u8 ] ) -> IResult < & [ u8 ] , Limit > { alt ( ( map ( preceded ( match_byte ( 0x00 ) , parse_u32 ) , Limit :: unbounded ) , map ( preceded ( match_byte ( 0x01 ) , tuple ( ( parse_u32 , parse_u32 ) ) ) , | ( min , max ) | Limit :: bounded ( min , max ) , ) , ) ) ( input ) }
Parses a WebAssembly limit from the input.
Parses a WebAssembly limit from the input .
input
&[u8]
input
&[u8]