fn rugged_ser_enum_map<K: EnumArray<V> + Serialize, V: From<i16> + PartialEq + Serialize, S: Serializer, const DEFAULT: i16>( map: &EnumMap<K, V>, ser: S, ) -> Result<S::Ok, S::Error>