parse_enum

Function parse_enum 

Source
pub fn parse_enum(
    name: &str,
    s: &str,
    allowed: &[&str],
) -> Result<usize, String>
Expand description

Returns the index of the matched option from allowed