runner

Function get_enum

Source
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.