parse_region

Function parse_region 

Source
fn parse_region(text: &str) -> Result<RegionCode, String>
Expand description

Parse one region code, rejecting the empty element a stray comma leaves behind. Anything that is not an airport code or 0x literal is hashed as a region name, so this only fails on empty input.