Expand description
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());
Structs
- An iterator over names.
- A collection of named parameters.
- An iterator over parameters.
- An iterator over mutable parameters.
- A parameter value.
Type Definitions
- A parameter name.