pcsm / simulacrum

A small library for creating mock objects in Rust.
MIT License
26 stars 3 forks source link

Clean up docs for macros #38

Open jasongrlicky opened 6 years ago

jasongrlicky commented 6 years ago

We can use the following pattern to hide details that we don't want to be documented:

#[macro_export]
macro_rules! macro_external {
    ($($params:tt)+) => {
       macro_ internal!($($params)+)
    };
}

#[macro_export]
#[doc(hidden)]
macro_rules! macro_internal {
   // ...
}