MCPcopy Create free account
hub / github.com/StudyRust/leetcode_rust / new

Method new

706-design-hashmap.rs:15–17  ·  view source on GitHub ↗

Initialize your data structure here. */

()

Source from the content-addressed store, hash-verified

13
14 /** Initialize your data structure here. */
15 fn new() -> Self {
16 MyHashMap{map: HashMap::new()}
17 }
18
19 /** value will always be non-negative. */
20 fn put(&mut self, key: i32, value: i32) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected