pub fn match_range(lower: u8, upper: u8) -> MatchFunc {
    Box::new(move |buf: &[u8]| -> bool {
        if buf.is_empty() {
            return false;
        }
        let b = buf[0];
        b >= lower && b <= upper
    })
}
/// match_range is a MatchFunc that accepts packets with the first byte in [lower..upper]
match_range is a MatchFunc that accepts packets with the first byte in [lower..upper]
match_range is a MatchFunc that accepts packets with the first byte in [ lower .. upper ]
pub fn match_range(lower: u8, upper: u8) -> MatchFunc {
    Box::new(move |buf: &[u8]| -> bool {
        if buf.is_empty() {
            return false;
        }
        let b = buf[0];
        b >= lower && b <= upper
    })
}
pub fn match_range ( lower : u8 , upper : u8 ) -> MatchFunc { Box :: new ( move | buf : & [ u8 ] | -> bool { if buf . is_empty ( ) { return false ; } let b = buf [ 0 ] ; b >= lower && b <= upper } ) }
match_range is a MatchFunc that accepts packets with the first byte in [lower..upper]
match_range is a MatchFunc that accepts packets with the first byte in [ lower .. upper ]
lower
u8
upper
u8