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::{parse_only, peek_next}; assert_eq!(parse_only(peek_next, b"abc"), Ok(b'a'));