Struct little::Options [] [src]

pub struct Options<I: Eq + Hash, V> {
    // some fields omitted
}

Runtime options maped to index list.

Methods

impl<I: Eq + Hash, V> Options<I, V>

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>

type Output = V

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

Derived Implementations

impl<I: Debug + Eq + Hash, V: Debug> Debug for Options<I, V>

fn fmt(&self, __arg_0: &mut Formatter) -> Result