Function chomp::parsers::eof [] [src]

pub fn eof<I: Input>(i: I) -> SimpleResult<I, ()>

Matches the end of the input.

use chomp::prelude::{parse_only, token, eof};

let r = parse_only(|i| token(i, b'a').then(eof), b"a");

assert_eq!(r, Ok(()));