Macro function_docs::get_docs [−][src]
get_docs!() { /* proc-macro */ }
Retrieves the doc comments on a function marked with #[function_docs]
.
Examples
/// Adds two integers together and returns them. #[function_docs] fn add(a: i32, b: i32) -> i32 { a + b } fn main() { assert_eq!(get_docs!(add), "Adds two integers together and returns them."); }