fn gen_to_and_from_str(name: &str, values: &[&'static str], fmt: &mut Formatter)
Emit Display and FromStr implementations for enum settings.