parside 0.2.0

Parser for Composable Event Streaming Representation (CESR)
Documentation
1
2
3
4
5
6
7
8
9
10
11
// Helper macros to map function returning parside result to nom compatible
#[macro_export]
macro_rules! nomify {
    ($func:expr) => {
        |bytes: &'a [u8]| {
            $func(bytes).map_err(|_| {
                nom::Err::Error(nom::error::Error::new(bytes, nom::error::ErrorKind::IsNot))
            })
        }
    };
}