macro_rules! doc_comment { ($x:expr) => { ... }; ($x:expr, $($tt:tt)*) => { ... }; }
Expand description
This macro can be used to generate documentation upon a type/item (or just to test outer markdown file code examples).
ยงExample
#[macro_use]
extern crate doc_comment;
// If you just want to test an outer markdown file:
doc_comment!(include_str!("../README.md"));
// If you want to document an item:
doc_comment!("fooo", pub struct Foo {});