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: bool

Set 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

Fills a CrateCheckConfig with well-known configuration names.

Fills a CrateCheckConfig with configuration names and values that are actually active.

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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