MCPcopy Create free account
hub / github.com/3Hren/msgpack-rust / emit_map

Method emit_map

src/encode.rs:1180–1185  ·  view source on GitHub ↗
(&mut self, len: usize, f: F)

Source from the content-addressed store, hash-verified

1178 }
1179
1180 fn emit_map<F>(&mut self, len: usize, f: F) -> Result<(), Error>
1181 where F: FnOnce(&mut Self) -> Result<(), Error>
1182 {
1183 try!(write_map_len(&mut self.wr, len as u32));
1184 f(self)
1185 }
1186
1187 fn emit_map_elt_key<F>(&mut self, _idx: usize, f: F) -> Result<(), Error>
1188 where F: FnOnce(&mut Self) -> Result<(), Error>

Callers

nothing calls this directly

Calls 1

write_map_lenFunction · 0.85

Tested by

no test coverage detected