pub struct ConfigItem<T> { /* private fields */ }
Expand description

Represents a configuration item as defined by the Abstract Syntax Tree, received from the kconfig-parser module.

Implementations

This impl block contains no items.

Methods applicable only for configuration item for positive integers

This impl block contains no items.

Methods applicable only for configuration item for positive, hexadecimal integers

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Selects the item by the value of another item, given the value of that item. Read more

Implies the item by the value of another item, given the value of that item. Read more

If the default value matches the actual value, this function results in a truth value. Read more

Sets the selected flag, if the item is to be selected with the given value for flag. Only applicable to items which are of type bool or tristate.

Sets the implied flag, if the item is to be implied. Only applicatie to items which are of type bool or tristate. The item’s value is not force fully set, but can be set depending on the value of the flag.

If the default value matches the actual value, this function results in a truth value. Read more

Sets the selected flag, if the item is to be selected with the given value for flag. Only applicable to items which are of type bool or tristate.

Sets the implied flag, if the item is to be implied. Only applicatie to items which are of type bool or tristate. The item’s value is not force fully set, but can be set depending on the value of the flag.

If the default value matches the actual value, this function results in a truth value. Read more

Selects the item by the value of another item, given the value of that item. Read more

Implies the item by the value of another item, given the value of that item. Read more

If the default value matches the actual value, this function results in a truth value. Read more

Selects the item by the value of another item, given the value of that item. Read more

Implies the item by the value of another item, given the value of that item. Read more

If the default value matches the actual value, this function results in a truth value. Read more

Formats the value using the given formatter. Read more

Implements the display routine for the configuration item

Formats the display for the configuration item

Implements the display routine for the configuration item

Formats the display for the configuration item

Implements the display routine for the configuration item

Formats the display for the configuration item

Implements the display routine for the configuration item

Formats the display for the configuration item

Implements the display routine for the configuration item

Formats the display for the configuration item

Implements the read and write to and from a dot configuration file from or to the configuration item

Returns the representation of the configuration item into the configuration file.

Loads the representation in the configurtion file back into the configuration item

Implements the read and write to and from a dot configuration file from or to the configuration item

Returns the representation of the configuration item into the configuration file.

Loads the representation in the configurtion file back into the configuration item

Implements the read and write to and from a dot configuration file from or to the configuration item

Returns the representation of the configuration item into the configuration file.

Loads the representation in the configurtion file back into the configuration item

Implements the read and write to and from a dot configuration file from or to the configuration item

Returns the representation of the configuration item into the configuration file.

Loads the representation in the configurtion file back into the configuration item

file from or to the configuration item

Returns the representation of the configuration item into the configuration file.

Loads the representation in the configurtion file back into the configuration item

Implements the Named type generically for all generic configuration item types.

Returns the name of the configuration item

Returns whether the configuration item is enabled

Sets the configuration item to be enabled

Returns the item’s help text (if present). If not present, should return an empty string instead.

Formats the value of the configuration item as a string.

Is called whenever a default value is configured and should be set according to it’s evaluation. Read more

Requests the default value as string representation

Formats the value of the configuration item as a string.

Is called whenever a default value is configured and should be set according to it’s evaluation. Read more

Requests the default value as string representation

Formats the value of the configuration item as a string.

Is called whenever a default value is configured and should be set according to it’s evaluation. Read more

Requests the default value as string representation

Formats the value of the configuration item as a string.

Saves the value of the int configuration item from a string. If it is not representing an int, it should silently fail.

Is called whenever a default value is configured and should be set according to it’s evaluation. Read more

Requests the default value as string representation

Formats the value of the configuration item as a string.

Saves the value of the int configuration item from a string. If it is not representing an int, it should silently fail.

Is called whenever a default value is configured and should be set according to it’s evaluation. Read more

Requests the default value as string representation

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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

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.