pub fn not_line_ending<T, E: ParseError<T>>(
    input: T
) -> IResult<T, <T as Stream>::Slice, E>where
    T: Stream + AsBStr + Compare<&'static str>,
    <T as Stream>::Token: AsChar,
👎Deprecated since 0.1.0: Replaced with <code>winnow::character::not_line_ending</code> with input wrapped in <code>winnow::Partial</code>
Expand description

Recognizes a string of any char except ‘\r\n’ or ‘\n’.

Partial version: Will return Err(winnow::error::ErrMode::Incomplete(_)) if there’s not enough input data.

Example

assert_eq!(not_line_ending::<_, Error<_>>("ab\r\nc"), Ok(("\r\nc", "ab")));
assert_eq!(not_line_ending::<_, Error<_>>("abc"), Err(ErrMode::Incomplete(Needed::Unknown)));
assert_eq!(not_line_ending::<_, Error<_>>(""), Err(ErrMode::Incomplete(Needed::Unknown)));
assert_eq!(not_line_ending::<_, Error<_>>("a\rb\nc"), Err(ErrMode::Backtrack(Error::new("a\rb\nc", ErrorKind::Tag ))));
assert_eq!(not_line_ending::<_, Error<_>>("a\rbc"), Err(ErrMode::Backtrack(Error::new("a\rbc", ErrorKind::Tag ))));

WARNING: Deprecated, replaced with winnow::character::not_line_ending with input wrapped in winnow::Partial