pub trait Var: Debug {
    fn name(&self) -> &'static str;
    fn value(&self) -> String;
    fn description(&self) -> &'static str;
    fn type_name(&self) -> &'static str;

    fn experimental(&self) -> bool { ... }
}
Expand description

A Var represents a configuration parameter of an arbitrary type.

Required methods

Returns the name of the configuration parameter.

Constructs a string representation of the current value of the configuration parameter.

Returns a short sentence describing the purpose of the configuration parameter.

Returns the name of the type of this variable.

Provided methods

Indicates wither the Var is experimental.

The default implementation determines this from the Var name, as experimental variable names should always end with “_experimental”.

Implementors