fn find_next_record<'a, Input>(
) -> impl Parser<Input, Output = (), PartialState = AnyPartialState> + 'a
where
    Input: RangeStream<Token = u8, Range = &'a [u8]> + 'a,
    // Necessary due to rust-lang/rust#24159
    Input::Error: ParseError<Input::Token, Input::Range, Input::Position>,
{
    any_partial_state(
        (
            skip_many(none_of(b"\n".iter().copied())),
            // entries are line separated
            token(b'\n'),
            token(b'\n'),
        )
            .map(|_| ()),
    )
}
// The actual parser for the journald export format
The actual parser for the journald export format
The actual parser for the journald export format
fn find_next_record<'a, Input>(
) -> impl Parser<Input, Output = (), PartialState = AnyPartialState> + 'a
where
    Input: RangeStream<Token = u8, Range = &'a [u8]> + 'a,
    // Necessary due to rust-lang/rust#24159
    Input::Error: ParseError<Input::Token, Input::Range, Input::Position>,
{
    any_partial_state(
        (
            skip_many(none_of(b"\n".iter().copied())),
            // entries are line separated
            token(b'\n'),
            token(b'\n'),
        )
            .map(|_| ()),
    )
}
fn find_next_record < ' a , Input > ( ) -> impl Parser < Input , Output = ( ) , PartialState = AnyPartialState > + ' a where Input : RangeStream < Token = u8 , Range = & ' a [ u8 ] > + ' a , // Necessary due to rust-lang/rust#24159 Input :: Error : ParseError < Input :: Token , Input :: Range , Input :: Position > , { any_partial_state ( ( skip_many ( none_of ( b" \n " . iter ( ) . copied ( ) ) ) , // entries are line separated token ( b'\n' ) , token ( b'\n' ) , ) . map ( | _ | ( ) ) , ) }
The actual parser for the journald export format
The actual parser for the journald export format