Function push_optional_value

Source
fn push_optional_value<T: ToString>(
    key: &str,
    value: &Option<T>,
    output: &mut String,
)
Expand description

Pushes a key-value pair to a String, if it is set.

Key-value pairs are scoped to a section. To make this visually distinguishable, the key-value pair is indented by a tab.