pub fn allowed_cpus() -> Vec<usize>
The CPUs this process may run on, as indices (the affinity mask on Linux and Windows). Falls back to 0..cpu_count() (or one CPU) where the mask can’t be read.
0..cpu_count()