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