modular-bitfield-impl 0.2.0

Bitfields for structs that allow for modular use of enums.
Documentation
1
2
3
4
5
6
7
8
9
10
11
macro_rules! bail {
    ($($args:tt)*) => {
        return Err(format_err!($($args)*).into())
    }
}

macro_rules! format_err {
    ($tokens:expr, $($msg:tt)*) => {
        syn::parse::Error::new_spanned(&$tokens, format_args!($($msg)*))
    }
}