pub fn parse_csv(raw: Option<&str>) -> Vec<String>Expand description
Split a comma-separated value into its non-empty, trimmed elements.
An absent, blank, or all-separators value yields an empty vector; whether that is acceptable is the caller’s decision.
§Examples
use env_reader::parse_csv;
assert_eq!(parse_csv(Some("245,212, 192 ,224")), ["245", "212", "192", "224"]);
// Empty elements are dropped, not preserved as empty strings.
assert_eq!(parse_csv(Some("a,,b,")), ["a", "b"]);
assert!(parse_csv(Some(" , , ")).is_empty());
assert!(parse_csv(None).is_empty());