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: boolIs well known values activated
values_valid: FxHashMap<T, FxHashSet<T>>The set of all values()
Implementations
sourceimpl 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)
sourcepub fn fill_actual(&mut self, cfg: &CrateConfig)
pub fn fill_actual(&mut self, cfg: &CrateConfig)
Fills a CrateCheckConfig with configuration names and values that are actually active.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
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