rustmax::nom::bits::complete

Function tag

Source
pub fn tag<I, O, C, E>(pattern: O, count: C) -> impl Fn((I, usize))
where E: ParseError<(I, usize)>, I: Input<Item = u8> + Clone, C: ToUsize, O: From<u8> + AddAssign + Shl<usize, Output = O> + Shr<usize, Output = O> + PartialEq,
Expand description

Generates a parser taking count bits and comparing them to pattern