MCPcopy Index your code
hub / github.com/douchuan/algorithm / set_color

Method set_color

src/tree/binary/node.rs:186–190  ·  view source on GitHub ↗
(&mut self, v: Color)

Source from the content-addressed store, hash-verified

184 }
185
186 pub fn set_color(&mut self, v: Color) {
187 if let Some(mut node) = self.node {
188 unsafe { node.as_mut().color = v }
189 }
190 }
191
192 pub fn copy_entry(&mut self, src: NonNull<Node<K, V>>) {
193 if let Some(mut node) = self.node {

Callers 7

insertMethod · 0.80
delete_minMethod · 0.80
delete_maxMethod · 0.80
deleteMethod · 0.80
rotate_leftFunction · 0.80
rotate_rightFunction · 0.80
insert_fixFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected