MCPcopy Create free account
hub / github.com/carllerche/assert-struct / insert

Method insert

assert-struct/tests/maps.rs:259–261  ·  view source on GitHub ↗
(&mut self, key: K, value: V)

Source from the content-addressed store, hash-verified

257 }
258
259 fn insert(&mut self, key: K, value: V) {
260 self.entries.push((key, value));
261 }
262
263 fn len(&self) -> usize {
264 self.entries.len()

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected