Function chomp::parsers::eof
[−]
[src]
pub fn eof<I>(i: Input<I>) -> SimpleResult<I, ()>
Matches the end of the input.
use chomp::{parse_only, token, eof}; let r = parse_only(|i| token(i, b'a').then(eof), b"a"); assert_eq!(r, Ok(()));