Macro doc_comment::doc_comment [−][src]
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 {});