Function edres::generate_enum_from_source
source · [−]pub fn generate_enum_from_source<Source: AsRef<str>, Name: AsRef<str>>(
source: Source,
enum_name: Name,
format: Format,
options: &Options
) -> Result<String, Error>
Expand description
Generate Rust code that defines an enum based on the map keys of the given markup source.