Trait byte_parser::ExpectByte
source · pub trait ExpectByte: Sized {
// Required method
fn expect_byte_fn<F>(self, f: F) -> Result<Self, Option<u8>>
where F: Fn(u8) -> bool;
// Provided method
fn expect_byte(self, byte: u8) -> Result<Self, Option<u8>> { ... }
}