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