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

Method fmt

datafusion/physical-expr/src/higher_order_function.rs:105–119  ·  view source on GitHub ↗
(&self, f: &mut Formatter)

Source from the content-addressed store, hash-verified

103
104impl Debug for HigherOrderFunctionExpr {
105 fn fmt(&self, f: &mut Formatter) -> fmt::Result {
106 let lambda_positions: Vec<_> = self
107 .slots
108 .iter()
109 .enumerate()
110 .filter_map(|(i, slot)| matches!(slot, ArgSlot::Lambda(_)).then_some(i))
111 .collect();
112 f.debug_struct("HigherOrderFunctionExpr")
113 .field("fun", &"<FUNC>")
114 .field("name", &self.name)
115 .field("args", &self.args)
116 .field("lambda_positions", &lambda_positions)
117 .field("return_field", &self.return_field)
118 .finish()
119 }
120}
121
122impl HigherOrderFunctionExpr {

Callers

nothing calls this directly

Calls 4

collectMethod · 0.80
iterMethod · 0.45
finishMethod · 0.45
fieldMethod · 0.45

Tested by

no test coverage detected