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::{Input, any};

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

assert_eq!(any(p).unwrap(), b'a');