option_chain
Run this command in a terminal, in your project's directory:
cargo add option-chain
To add it manually, edit your project's Cargo.toml file and add to the [dependencies] section:
Cargo.toml
[dependencies]
option-chain = "0.1.2"
The option_chain library will be automatically available globally. Read the option_chain library documentation.
Back to the crate overview.