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>> { ... }
}

Required Methods§

source

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

Provided Methods§

source

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

Implementations on Foreign Types§

source§

impl ExpectByte for Option<u8>

source§

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

source§

impl ExpectByte for u8

source§

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

Implementors§