Function combine::parser::token::any [−][src]
pub fn any<Input>() -> Any<Input> where
Input: Stream,
Expand description
Parses any token.
let mut char_parser = any(); assert_eq!(char_parser.parse("!").map(|x| x.0), Ok('!')); assert!(char_parser.parse("").is_err()); let mut byte_parser = any(); assert_eq!(byte_parser.parse(&b"!"[..]).map(|x| x.0), Ok(b'!')); assert!(byte_parser.parse(&b""[..]).is_err());