Struct rustc_session::config::CheckCfg
source · [−]pub struct CheckCfg<T = String> {
pub names_checked: bool,
pub names_valid: FxHashSet<T>,
pub values_checked: FxHashSet<T>,
pub values_valid: FxHashSet<(T, T)>,
}Expand description
The parsed --check-cfg options
Fields
names_checked: boolSet if names() checking is enabled
names_valid: FxHashSet<T>The union of all names()
values_checked: FxHashSet<T>The set of names for which values() was used
values_valid: FxHashSet<(T, T)>The set of all (name, value) pairs passed in values()
Implementations
sourceimpl CheckCfg<Symbol>
impl CheckCfg<Symbol>
sourcepub fn fill_well_known(&mut self)
pub fn fill_well_known(&mut self)
Fills a CrateCheckConfig with well-known configuration names.
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 · sourcepub fn borrow_mut(&mut self) -> &mut T
pub 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: 104 bytes