Struct little::Options [] [src]

pub struct Options<I, V> {
    // some fields omitted
}

Runtime options maped to index list.

Methods

impl<I: Eq + Hash, V> Options<I, V>
[src]

fn new(map: HashMap<I, V>) -> Options<I, V>

fn empty() -> Options<I, V>

fn push(&mut self, index: I, value: V)

fn get<'a>(&'a self, index: I) -> Option<&'a V>

Trait Implementations

impl<I: Eq + Hash, V> Index<I> for Options<I, V>
[src]

type Output = V

The returned type after indexing

fn index<'a>(&'a self, index: I) -> &'a V

The method for the indexing (Foo[Bar]) operation