Attribute Macro function_docs::function_docs[][src]

#[function_docs]

Marks a function for retrieval of doc comments using get_docs!.

Examples

/// Adds two integers together and returns them.
#[function_docs]
fn add(a: i32, b: i32) -> i32 {
    a + b
}