Function num_threads_parser

Source
pub fn num_threads_parser(arg: &str) -> Result<usize>
Expand description

Parses the number of threads from a string.

This function is meant to be used with #[arg(..., value_parser = num_threads_parser)].