Struct rustc_session::config::CheckCfg
source · pub struct CheckCfg<T = String> {
pub names_valid: Option<FxHashSet<T>>,
pub well_known_values: bool,
pub values_valid: FxHashMap<T, FxHashSet<T>>,
}
Expand description
The parsed --check-cfg
options
Fields§
§names_valid: Option<FxHashSet<T>>
The set of all names()
, if None no name checking is performed
well_known_values: bool
Is well known values activated
values_valid: FxHashMap<T, FxHashSet<T>>
The set of all values()
Implementations§
source§impl CheckCfg<Symbol>
impl CheckCfg<Symbol>
sourcefn fill_well_known_names(&mut self)
fn fill_well_known_names(&mut self)
Fills a CrateCheckConfig
with well-known configuration names.
sourcefn fill_well_known_values(&mut self)
fn fill_well_known_values(&mut self)
Fills a CrateCheckConfig
with well-known configuration values.
pub fn fill_well_known(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl<T> RefUnwindSafe for CheckCfg<T>where
T: RefUnwindSafe,
impl<T> Send for CheckCfg<T>where
T: Send,
impl<T> Sync for CheckCfg<T>where
T: Sync,
impl<T> Unpin for CheckCfg<T>where
T: Unpin,
impl<T> UnwindSafe for CheckCfg<T>where
T: UnwindSafe,
Blanket Implementations§
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 72 bytes