[][src]Trait glitchconsole::options::MutConfig

pub trait MutConfig {
    fn to_hashmap(&self) -> HashMap<String, MutOptionVal>;
}

A trait to describe a struct that stores configuration options. Used to configure mutations.

Required methods

fn to_hashmap(&self) -> HashMap<String, MutOptionVal>

Converts a MutConfig into a hashmap to be used by a Mutation. This conversion happens to facilitate the passing of options.

The String should represent the option name, and the MutOptionVal should represent the value.

Loading content...

Implementors

Loading content...