Macro default_text

Source
macro_rules! default_text {
    ($value:expr) => { ... };
    ($value:expr, $override:expr) => { ... };
}
Expand description

Returns the serialized TOML representation of a default value.

Takes the default value for a given option and converts it into its equivalent TOML representation. This is used to expose the internal default values to users.

If a second argument is provided, that value will be considered as an override. This is useful for options that determine its default value based on the runtime environment.