optional_str

Function optional_str 

Source
fn optional_str(s: &str) -> Option<&str>
Expand description

If the provided string is empty, map it to -.