macro_rules! conditional_vis_mod {
($name:ident, $cond:meta, $conditional_vis:vis) => { ... };
($name:ident, $cond:meta, $conditional_vis:vis, $fallback_vis:vis) => { ... };
}
Expand description
Conditionally declares a mod as public.
Arguments:
- name - The name of the module being declared
- cond - The condition for
conditional_vis
- conditional_vis - The visibility to use if
cond
is true - fallback_vis - Optional visibility to use if
cond
is false