Macro sphinx_rustdocgen::check_visibility
source ยท macro_rules! check_visibility { ($options:expr, $max:expr) => { ... }; }
Expand description
Check the options to determine if the visibility of a directive matches the specified max visibility and return empty Vec if not.
This macro should be used within a function and will cause it to return early when the visibility of the options provided does not meet the specified max.
Args:
:options: A vec of DirectiveOption
:max: The maximum visibility that should be included in the output.