Adding num_traits library as a dependency

Run this command in a terminal, in your project's directory:

cargo add num-traits

To add it manually, edit your project's Cargo.toml file and add to the [dependencies] section:

num-traits = "0.2.19"

The num_traits library will be automatically available globally. Read the num_traits library documentation.

Back to the crate overview.