pub fn get_enum<'a>(
dict: &'a Dictionary,
key: &str,
variants: &[&str],
) -> Result<Option<&'a str>, StartInfoProgramError>
Expand description
Retrieve a reference to the enum value corresponding to the key.
pub fn get_enum<'a>(
dict: &'a Dictionary,
key: &str,
variants: &[&str],
) -> Result<Option<&'a str>, StartInfoProgramError>
Retrieve a reference to the enum value corresponding to the key.