Trait MatchCondition

Source
pub trait MatchCondition: Send + 'static {
    // Required method
    fn match_cond(&mut self, buf: &[u8]) -> Result<usize, usize>;
}

Required Methods§

Source

fn match_cond(&mut self, buf: &[u8]) -> Result<usize, usize>

Implementations on Foreign Types§

Source§

impl MatchCondition for &'static str

Source§

fn match_cond(&mut self, buf: &[u8]) -> Result<usize, usize>

Source§

impl MatchCondition for &'static [u8]

Source§

fn match_cond(&mut self, buf: &[u8]) -> Result<usize, usize>

Source§

impl MatchCondition for char

Source§

fn match_cond(&mut self, buf: &[u8]) -> Result<usize, usize>

Source§

impl MatchCondition for u8

Source§

fn match_cond(&mut self, buf: &[u8]) -> Result<usize, usize>

Source§

impl MatchCondition for usize

Source§

fn match_cond(&mut self, buf: &[u8]) -> Result<usize, usize>

Implementors§