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 thecfgtokens 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 ofTokenTreewith only the tokens weβre interested into. - is_
cfg_ πtoken - Returns true if the provided
tokenis acfgident. - propagate_
doc_ πcfg