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

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

Matches any item but does not consume it.

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

use chomp::{Input, peek_next};

let p1 = Input::new(b"abc");

assert_eq!(peek_next(p1).unwrap(), b'a');