#parameters #named #structure

options

The package provides a data structure for managing named parameters

13 unstable releases

0.6.1 Nov 12, 2024
0.5.3 Jun 28, 2023
0.5.2 Nov 5, 2022
0.5.1 Oct 23, 2016
0.3.2 Jul 9, 2015

#166 in Configuration

Download history 279/week @ 2024-08-17 217/week @ 2024-08-24 262/week @ 2024-08-31 101/week @ 2024-09-07 127/week @ 2024-09-14 149/week @ 2024-09-21 140/week @ 2024-09-28 228/week @ 2024-10-05 407/week @ 2024-10-12 270/week @ 2024-10-19 255/week @ 2024-10-26 188/week @ 2024-11-02 397/week @ 2024-11-09 260/week @ 2024-11-16 256/week @ 2024-11-23 243/week @ 2024-11-30

1,174 downloads per month
Used in 8 crates (via arguments)

Apache-2.0/MIT

10KB
199 lines

Options Package Documentation Build

The package provides a data structure for managing named parameters.

Example

use options::Options;

let mut options = Options::new();

options
    .set("foo", 42)
    .set("bar", "To be or not to be?")
    .set("baz", "Hello, world!".to_string());

println!("foo = {}", options.get::<i32>("foo").unwrap());
println!("bar = {}", options.get::<&str>("bar").unwrap());
println!("baz = {}", options.get::<String>("baz").unwrap());

Contribution

Your contribution is highly appreciated. Do not hesitate to open an issue or a pull request. Note that any contribution submitted for inclusion in the project will be licensed according to the terms given in LICENSE.md.

No runtime deps