Trait byte_parser::ExpectByte[][src]

pub trait ExpectByte: Sized {
    fn expect_byte_fn<F>(self, f: F) -> Result<Self, Option<u8>>
    where
        F: Fn(u8) -> bool
; fn expect_byte(self, byte: u8) -> Result<Self, Option<u8>> { ... } }

Required methods

fn expect_byte_fn<F>(self, f: F) -> Result<Self, Option<u8>> where
    F: Fn(u8) -> bool
[src]

Loading content...

Provided methods

fn expect_byte(self, byte: u8) -> Result<Self, Option<u8>>[src]

Loading content...

Implementations on Foreign Types

impl ExpectByte for Option<u8>[src]

impl ExpectByte for u8[src]

Loading content...

Implementors

Loading content...