[−][src]Function combine::parser::char::newline
pub fn newline<I>() -> Newline<I> where
I: Stream<Item = char>,
I::Error: ParseError<I::Item, I::Range, I::Position>,
Parses a newline character ('\n'
).
use combine::Parser; use combine::parser::char::newline; assert_eq!(newline().parse("\n"), Ok(('\n', ""))); assert!(newline().parse("\r").is_err());