pub fn not_line_ending<T, E: ParseError<T>>(
    input: T
) -> IResult<T, <T as IntoOutput>::Output, E>where
    T: Slice<Range<usize>> + Slice<RangeFrom<usize>> + Slice<RangeTo<usize>> + InputIter + InputLength + IntoOutput + Compare<&'static str>,
    <T as InputIter>::Item: AsChar,
👎Deprecated since 8.0.0: Replaced with nom8::character::not_line_ending with input wrapped in nom8::input::Streaming
Expand description

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

Streaming version: Will return Err(nom8::Err::Incomplete(_)) if there’s not enough input data.

Example

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

WARNING: Deprecated, replaced with nom8::character::not_line_ending with input wrapped in nom8::input::Streaming