Is there a way to match doccomments in Rust's macro_rules?
I have a macro that generates an enum for a bunch of C constants that bindgen creates:
macro_rules! id_enum {
( enum $name:ident: $typ:ty { $( $enum_name:ident => $value:expr ),* , } ) => { ... }
}
I'd like to annotate each with a doc comment (a /// comment), but that requires that my macro match the doc comments. Is that possible?