parse_cpu_list_lenient

Function parse_cpu_list_lenient 

Source
pub fn parse_cpu_list_lenient(s: &str) -> Vec<usize>
Expand description

Parse a CPU list string, silently skipping invalid entries.

Unlike parse_cpu_list, this never fails — non-numeric elements and reversed ranges are ignored. Returns a sorted ascending Vec<usize>, matching parse_cpu_list’s contract so callers that do iter().min() / binary search / fold-into-BTreeSet see identical ordering whichever parser they used.