Skip to main content

Module cfg

Module cfg 

Source
Expand description

The representation of a #[doc(cfg(...))] attribute.

Structsยง

Cfg ๐Ÿ”’
CfgInfo ๐Ÿ”’
This type keeps track of (doc) cfg information as we go down the item tree.
Display ๐Ÿ”’
Pretty-print wrapper for a Cfg. Also indicates what form of rendering should be used.
NameValueCfg ๐Ÿ”’

Enumsยง

Format ๐Ÿ”’

Functionsยง

extract_cfg_from_attrs ๐Ÿ”’
handle_auto_cfg_hide_show ๐Ÿ”’
This functions updates the hidden_cfg field of the provided cfg_info argument.
human_readable_target_arch ๐Ÿ”’
human_readable_target_env ๐Ÿ”’
human_readable_target_os ๐Ÿ”’
is_any_cfg ๐Ÿ”’
Returns true if is CfgEntry::Any, otherwise returns false.
is_simple_cfg ๐Ÿ”’
Whether the configuration consists of just Cfg or Not.
should_capitalize_first_letter ๐Ÿ”’
show_hide_show_conflict_error ๐Ÿ”’
strip_hidden ๐Ÿ”’