Function chomp::parsers::peek_next [] [src]

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

Matches any item but does not consume it.

If the buffer length is 0 this parser is considered incomplete.

use chomp::prelude::{parse_only, peek_next};

assert_eq!(parse_only(peek_next, b"abc"), Ok(b'a'));