Skip to main content

yaml_path_to_const

Function yaml_path_to_const 

Source
pub fn yaml_path_to_const(yaml_path: &str) -> String
Expand description

Convert a dotted YAML path (for example, "dogstatsd.bind_host") to a SCREAMING_SNAKE_CASE Rust identifier suitable for a const name.