usestd::collections::BTreeMap;/// Returns the first value from a `String`-keyed `BTreeMap` matching the
/// provided case-insensitive `String` key.
#[inline]pubfncase_insensitive_btreemap_get<'a, V>(map:&'aBTreeMap<String, V>,
key:&str)->Option<&'a V>{
map.iter().filter(|&(k, _)|k.to_lowercase()== key.to_lowercase()).map(|(_,v)|v).next()}