Function bparse::parse

source ·
pub fn parse(
    pattern: impl BytePattern,
    count: impl PatternRepetition
) -> impl Fn(&[u8]) -> Option<(&[u8], &[u8])>
Expand description

Returns a parser that will try to match pattern

If the pattern matches, the parser will return a tuple made up of the slice of input that matched, and the rest of the input

Look to the BytePattern impls for what can be used as pattern