Function winnow::bits::streaming::tag

source ·
pub fn tag<I, O, C, E: ParseError<(I, usize)>>(
    pattern: O,
    count: C
) -> impl Fn((I, usize)) -> IResult<(I, usize), O, E>where
    I: Stream<Token = u8> + AsBytes,
    C: ToUsize,
    O: From<u8> + AddAssign + Shl<usize, Output = O> + Shr<usize, Output = O> + PartialEq,
👎Deprecated since 0.1.0: Replaced with <code>winnow::bits::tag</code> with input wrapped in <code>winnow::Partial</code>
Expand description

Generates a parser taking count bits and comparing them to pattern

WARNING: Deprecated, replaced with winnow::bits::tag with input wrapped in winnow::Partial