Expand description
The representation of a #[doc(cfg(...))] attribute.
Re-exportsยง
use std::str::FromStr;๐use std::sync::Arc;๐use std::fmt;๐use std::mem;๐use std::ops;๐use itertools::Either;๐use rustc_attr_ir::AttributeKind;๐use rustc_attr_ir::CfgEntry;๐use rustc_attr_ir::CfgHideShow;๐use rustc_attr_ir::DocCfgHideShow;๐use rustc_attr_ir::DocCfgHideShowValue;๐use rustc_attr_ir::HideOrShow;๐use rustc_data_structures::fx::FxHashMap;๐use rustc_data_structures::thin_vec::ThinVec;๐use rustc_data_structures::thin_vec::thin_vec;๐use rustc_middle::ty::TyCtxt;๐use rustc_span::symbol::Symbol;๐use rustc_span::symbol::sym;๐use rustc_span::DUMMY_SP;๐use rustc_span::Span;๐use rustc_target::spec;๐use crate::display::Joined as _;๐use crate::display::MaybeDisplay;๐use crate::display::Wrapped;๐use crate::html::escape::Escape;๐
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.
Enumsยง
- DocCfg
Hide ๐ - Format ๐
Functionsยง
- extract_
cfg_ ๐from_ attrs - handle_
auto_ ๐cfg_ hide_ show - This functions updates the
hidden_cfgfield of the providedcfg_infoargument. - human_
readable_ ๐target_ arch - human_
readable_ ๐target_ env - human_
readable_ ๐target_ os - is_
any_ ๐cfg - Returns
trueif is [CfgEntry::Any], otherwise returnsfalse. - is_
simple_ ๐cfg - Whether the configuration consists of just
CfgorNot. - should_
capitalize_ ๐first_ letter - strip_
hidden ๐