Function one

Source
pub fn one<CharType>(ch: CharType) -> SingleEqualParser<CharType>
Expand description

Check one character is equal to the given character.

Output: (Iterator::Item,)

ยงExample

use rusty_parser as rp;
use rp::IntoParser;

let a_parser = rp::one('a');
let a_parser = 'a'.into_parser();