[−][src]Function hostlist::expand
pub fn expand(a_str: &str) -> Result<Vec<String>, &'static str>
Expand a hostlist to a vector of hostnames
Examples
extern crate hostlist; assert_eq!(hostlist::expand("foo[1-3]").unwrap(), vec!["foo1", "foo2", "foo3"]);