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