pub fn format_to_key(format: &str) -> Option<&'static str>Expand description
The preference naming the application that opens a format, if any.
use music21::environment::format_to_key;
assert_eq!(format_to_key("lilypond"), Some("lilypondPath"));
assert_eq!(format_to_key("jpeg"), Some("graphicsPath"));
assert_eq!(format_to_key("ipython"), None);