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

Method fields

arrow-array/src/array/struct_array.rs:311–316  ·  view source on GitHub ↗

Returns the [`Fields`] of this [`StructArray`]

(&self)

Source from the content-addressed store, hash-verified

309
310 /// Returns the [`Fields`] of this [`StructArray`]
311 pub fn fields(&self) -> &Fields {
312 match self.data_type() {
313 DataType::Struct(f) => f,
314 _ => unreachable!(),
315 }
316 }
317
318 /// Return child array whose field name equals to column_name
319 ///

Callers 2

flattenMethod · 0.45
fromMethod · 0.45

Calls 1

data_typeMethod · 0.45

Tested by

no test coverage detected