#[non_exhaustive]
pub struct Config { pub option_name: String, pub prefix: String, pub program: String, pub mode: Mode, }
Expand description

Runtime configuration settings for the obtain_features function.

Fields (Non-exhaustive)

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
option_name: String

The option to pass to the program to query for supported features.

prefix: String

The prefix to look for in the lines output by the program.

program: String

The name or full path of the program to execute.

mode: Mode

The feature-check tool’s operating mode.

Implementations

Replace the option name to query.

Replace the prefix to look for in the program output.

Replace the name of the program to execute.

Replace the query mode.

Trait Implementations

Formats the value using the given formatter. Read more
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.