extract_mapping_types

Function extract_mapping_types 

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

Extracts the type parameters from Mapping<K, V>.

Returns Some((key_type, value_type)) if the type is a Mapping, None otherwise.