We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
field_builders
StructBuilder
1 parent f5138fc commit e1ac277Copy full SHA for e1ac277
arrow-array/src/builder/struct_builder.rs
@@ -372,6 +372,16 @@ impl StructBuilder {
372
self.field_builders[i].as_any_mut().downcast_mut::<T>()
373
}
374
375
+ /// Returns a reference to field builders
376
+ pub fn field_builders(&self) -> &[Box<dyn ArrayBuilder>] {
377
+ &self.field_builders
378
+ }
379
+
380
+ /// Returns a mutable reference to field builders
381
+ pub fn field_builders_mut(&mut self) -> &mut [Box<dyn ArrayBuilder>] {
382
+ &mut self.field_builders
383
384
385
/// Returns the number of fields for the struct this builder is building.
386
pub fn num_fields(&self) -> usize {
387
self.field_builders.len()
0 commit comments