pub trait Config: MenuItem + DotConfig + Display + Debug + StringValue {
    fn prompt(&self) -> String;

    fn mutation_mode(&self) -> ConfigMutationMode { ... }
    fn next_step(&mut self) -> Result<(), Error> { ... }
    fn select(&mut self, _flag: Option<Tristate>) { ... }
    fn imply(&mut self, _flag: Option<Tristate>) { ... }
    fn value_is_default(&self) -> bool { ... }
}
Expand description

Represents a configuration item

Required Methods

Provided Methods

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

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

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

Implementors