Function pack_map

Source
pub fn pack_map<T, A, I, B, K, V>(buf: &mut T, iter: A) -> usize
where T: Extend<u8>, A: IntoIterator<IntoIter = I>, B: Borrow<(K, V)>, I: Iterator<Item = B> + ExactSizeIterator, K: Packable, V: Packable,
Expand description

Packs a map into the extendable buffer, returning the amount of written bytes.