1 2 3 4 5 6
#[inline] pub fn get_num() -> usize { std::thread::available_parallelism() .map(Into::into) .unwrap_or(1) }