Skip to main content

nonempty

Function nonempty 

Source
pub fn nonempty(key: &str) -> Option<String>
Expand description

The trimmed value of key, if set and non-blank. The Option shape makes “env override, else default” read as nonempty(K).unwrap_or_else(..) and composes with .or_else chains for multi-variable fallbacks.