#data-structure #named #data #package #parameters #structure #managing

options

The package provides a data structure for managing named parameters

10 releases (5 breaking)

Uses old Rust 2015

0.5.2 Nov 5, 2022
0.5.1 Oct 23, 2016
0.5.0 Jun 17, 2016
0.4.0 Oct 15, 2015
0.0.1 Jun 14, 2015

#343 in Data structures

Download history 80/week @ 2022-08-07 45/week @ 2022-08-14 60/week @ 2022-08-21 35/week @ 2022-08-28 50/week @ 2022-09-04 55/week @ 2022-09-11 45/week @ 2022-09-18 42/week @ 2022-09-25 83/week @ 2022-10-02 42/week @ 2022-10-09 25/week @ 2022-10-16 58/week @ 2022-10-23 90/week @ 2022-10-30 123/week @ 2022-11-06 96/week @ 2022-11-13 55/week @ 2022-11-20

384 downloads per month
Used in 4 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