Function crlf
fn crlf<Input, Error>(input: &mut Input) -> Result<<Input as Stream>::Slice, Error>
where
Input: StreamIsPartial + Stream + Compare<&'static str>,
Error: ParserError<Input>
Recognizes the string "\r\n".
Complete version: Will return an error if there's not enough input data.
[Partial version][crate::_topic::partial]: Will return Err(winnow::error::ErrMode::Incomplete(_)) if there's not enough input data.
Effective Signature
Assuming you are parsing a &str [Stream]:
# use *;;
#
Example
# use *;
# use crlf;
assert_eq!;
assert!;
assert!;
# use *;
# use ;
# use Partial;
# use crlf;
assert_eq!;
assert!;
assert_eq!;