fuzzy-pickles 0.1.1

A low-level parser of Rust source code with high-level visitor implementations
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
macro_rules! unwrap_as {
    ($e:expr, $p:path) => {
        match $e {
            $p(s) => s,
            _ => panic!("Not a {}: {:?}", stringify!($p), $e),
        }
    }
}

macro_rules! assert_extent {
    ($parsed:expr, $extent:expr) => (assert_eq!(crate::HasExtent::extent(&$parsed), Extent::from($extent)));
}