MCPcopy Create free account
hub / github.com/apache/datafusion / set_node

Method set_node

datafusion/physical-plan/src/render_tree.rs:114–119  ·  view source on GitHub ↗
(&mut self, x: usize, y: usize, node: Arc<RenderTreeNode>)

Source from the content-addressed store, hash-verified

112 }
113
114 pub fn set_node(&mut self, x: usize, y: usize, node: Arc<RenderTreeNode>) {
115 let pos = self.get_position(x, y);
116 if let Some(slot) = self.nodes.get_mut(pos) {
117 *slot = Some(node);
118 }
119 }
120
121 pub fn has_node(&self, x: usize, y: usize) -> bool {
122 if x >= self.width || y >= self.height {

Callers 1

create_tree_recursiveFunction · 0.80

Calls 2

get_positionMethod · 0.80
get_mutMethod · 0.80

Tested by

no test coverage detected