pub fn max_num_threads() -> usize
Returns the maximum number of threads that Rayon supports in a single thread-pool.
If a higher thread count is requested by calling
ThreadPoolBuilder::num_threads or by setting
RAYON_NUM_THREADS environment variable, then it will be reduced to this maximum.
The value may vary between different targets, and is subject to change in new Rayon versions.