Function cbor_event::se::serialize_fixed_map
source · pub fn serialize_fixed_map<'a, C, K, V, W>(
data: C,
serializer: &mut Serializer<W>
) -> Result<&mut Serializer<W>>where
K: 'a + Serialize,
V: 'a + Serialize,
C: Iterator<Item = (&'a K, &'a V)> + ExactSizeIterator,
W: Write + Sized,
Expand description
helper function to serialise a map of fixed size.
i.e. the size must be known ahead of time