Function bparse::alpha

source ·
pub fn alpha(input: &[u8]) -> Option<(&[u8], &[u8])>
Expand description

A pattern that fails if the byte at the start of the input is not an ascii alphabetic character

§Example

use bparse::{Pattern, alpha};
assert_eq!(alpha.test(b"a").unwrap().0, b"a");
assert_eq!(alpha.test(b"1"), None);