pub fn match_pattern<ParserType, It>(
parser: &ParserType,
it: It,
) -> ParseResult<(), It>where
It: InputIteratorTrait,
ParserType: Parser<It>,Expand description
Match pattern of the input with the given parser.
crate::match_pattern() can be used
when you only want to check if the pattern is matched or not, without extracting data.
For some parsers, like IntoParser::repeat, it is expensive to call crate::parse() to get the output since it invokes Vec::push inside.