#parameters #named #structure

options

The package provides a data structure for managing named parameters

11 unstable releases

0.5.3 Jun 28, 2023
0.5.2 Nov 5, 2022
0.5.1 Oct 23, 2016
0.5.0 Jun 17, 2016
0.3.2 Jul 9, 2015

#139 in Configuration

Download history 428/week @ 2024-01-06 488/week @ 2024-01-13 197/week @ 2024-01-20 162/week @ 2024-01-27 185/week @ 2024-02-03 150/week @ 2024-02-10 376/week @ 2024-02-17 365/week @ 2024-02-24 165/week @ 2024-03-02 390/week @ 2024-03-09 244/week @ 2024-03-16 308/week @ 2024-03-23 260/week @ 2024-03-30 245/week @ 2024-04-06 336/week @ 2024-04-13 414/week @ 2024-04-20

1,276 downloads per month
Used in 8 crates (2 directly)

Apache-2.0/MIT

10KB
205 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