MCPcopy Create free account
hub / github.com/apache/arrow-rs / fmt

Method fmt

arrow-array/src/array/struct_array.rs:555–574  ·  view source on GitHub ↗
(&self, f: &mut std::fmt::Formatter)

Source from the content-addressed store, hash-verified

553
554impl std::fmt::Debug for StructArray {
555 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
556 writeln!(f, "StructArray")?;
557 writeln!(f, "-- validity:")?;
558 writeln!(f, "[")?;
559 print_long_array(self, f, |_array, _index, f| write!(f, "valid"))?;
560 writeln!(f, "]\n[")?;
561 for (child_index, name) in self.column_names().iter().enumerate() {
562 let column = self.column(child_index);
563 writeln!(
564 f,
565 "-- child {}: \"{}\" ({:?})",
566 child_index,
567 name,
568 column.data_type()
569 )?;
570 std::fmt::Debug::fmt(column, f)?;
571 writeln!(f)?;
572 }
573 write!(f, "]")
574 }
575}
576
577impl From<(Vec<(FieldRef, ArrayRef)>, Buffer)> for StructArray {

Callers

nothing calls this directly

Calls 4

print_long_arrayFunction · 0.85
column_namesMethod · 0.80
iterMethod · 0.45
columnMethod · 0.45

Tested by

no test coverage detected