pub fn elm_any_ref<'a, I>() -> Parser<'a, I, &'a I>
Expand description
Returns a Parser that parses an any element.(for reference)
任意の要素を解析するParserを返します。(参照版)
§Example
use oni_comb_parser_rs::prelude::*;
let text: &str = "x";
let input: Vec<char> = text.chars().collect::<Vec<_>>();
let parser: Parser<char, &char> = elm_any_ref();
let result: ParseResult<char, &char> = parser.parse(&input);
assert!(result.is_success());
assert_eq!(result.success().unwrap(), &input[0]);