MCPcopy Create free account
hub / github.com/douchuan/algorithm / insert

Method insert

src/tree/binary/rb.rs:136–138  ·  view source on GitHub ↗
(&mut self, key: K, val: V)

Source from the content-addressed store, hash-verified

134 K: Ord,
135{
136 fn insert(&mut self, key: K, val: V) {
137 self.root = insert(self.root, key, val);
138 }
139}
140
141fn insert<K, V>(root: Option<NonNull<Node<K, V>>>, key: K, val: V) -> Option<NonNull<Node<K, V>>>

Callers 1

iterateMethod · 0.45

Calls 1

insertFunction · 0.70

Tested by

no test coverage detected