pub fn parse_selection(selection_str: &str) -> Result<Selection>Expand description
Parses a selection string into a Selection enum.
§Examples
use window_enumerator::parse_selection;
let selection = parse_selection("1,2,3").unwrap();
let all_selection = parse_selection("all").unwrap();
let range_selection = parse_selection("1-3").unwrap();§Errors
Returns WindowError::InvalidSelectionFormat if the string cannot be parsed.