pub fn check_map_len<K, V>( items: &BTreeMap<K, V>, max: usize, field: &'static str, ) -> Result<(), WireValidationError>
Check that a BTreeMap does not exceed the given length limit.
BTreeMap