bparse

Function byte

Source
pub fn byte() -> SingleByte
Expand description

Returns a pattern that will match any single byte in the input

use bparse::{Pattern, byte};

assert_eq!(byte().eval(&[1, 2, 3]), Some(1));