pub struct Value {
    pub name: &'static str,
    /* private fields */
}
Expand description

Represents a setting value.

This is used for iterating values in Flags.

Fields

name: &'static str

The name of the setting associated with this value.

Implementations

Gets the kind of setting.

Gets the enum value if the value is from an enum setting.

Gets the numerical value if the value is from a num setting.

Gets the boolean value if the value is from a boolean setting.

Trait Implementations

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

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.