byte

Function byte 

Source
pub fn byte() -> One
Expand description

Returns a new pattern that always matches the next byte in the input if it exists.

use bparse::{Pattern, byte};

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