Function alpha

Source
pub fn alpha() -> ByteLookupTable
Expand description

Returns a pattern that will match any ascii letter at the start of the input

use bparse::{Pattern, alpha};

assert_eq!(alpha().eval(b"1"), None);
assert_eq!(alpha().eval(b"a"), Some(1));