Struct options::Options [] [src]

pub struct Options {
    // some fields omitted
}

A collection of named parameters.

Methods

impl Options
[src]

fn new() -> Options

Create a new collection of named parameters.

fn get<T: Any + Clone>(&self, name: &str) -> Option<T>

Get the value of a parameter.

fn get_ref<T: Any>(&self, name: &str) -> Option<&T>

Get the value of a parameter by reference.

fn set<'l, T: Any>(&'l mut self, name: &str, value: T) -> &'l mut Options

Set the value of a parameter.