Function chomp::parsers::any
[−]
[src]
pub fn any<I: Copy>(i: Input<I>) -> SimpleResult<I, I>
Matches any item, returning it if present.
If the buffer length is 0 this parser is considered incomplete.
use chomp::{parse_only, any}; assert_eq!(parse_only(any, b"abc"), Ok(b'a'));