Expand description
Propagates #[doc(cfg(...))]
to child items.
StructsΒ§
- CfgPropagator π
ConstantsΒ§
- PROPAGATE_
DOC_ πCFG
FunctionsΒ§
- add_
only_ πcfg_ attributes - This function goes through the attributes list (
new_attrs
) and extract thecfg
tokens from it and put them intoattrs
. - filter_
non_ πcfg_ tokens_ from_ list - We only want to keep
#[cfg()]
and#[doc(cfg())]
attributes so we rebuild a vec ofTokenTree
with only the tokens weβre interested into. - is_
cfg_ πtoken - Returns true if the provided
token
is acfg
ident. - propagate_
doc_ πcfg