Skip to main content

doc_share

Attribute Macro doc_share 

Source
#[doc_share]
Expand description

Share documentation comment as given name module.

ยงExamples

use rustdoc_copy::prelude::*;

/// My function.
#[doc_share(doc)]
pub fn my_func() {
    println("`my_func` is called.");
}

#[doc = doc::all!()]
pub fn my_func_alias() {
    my_func();
}