Skip to main content

extract_map_type

Function extract_map_type 

Source
pub fn extract_map_type(ty: &Type) -> Option<(Type, Type)>
Expand description

Check if a type is HashMap<K, V> or BTreeMap<K, V> and extract K and V