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

Method with_field

arrow-array/src/builder/generic_list_builder.rs:127–132  ·  view source on GitHub ↗

Override the field passed to [`GenericListArray::new`] By default a nullable field is created with the name `item` Note: [`Self::finish`] and [`Self::finish_cloned`] will panic if the field's data type does not match that of `T`

(self, field: impl Into<FieldRef>)

Source from the content-addressed store, hash-verified

125 /// Note: [`Self::finish`] and [`Self::finish_cloned`] will panic if the
126 /// field's data type does not match that of `T`
127 pub fn with_field(self, field: impl Into<FieldRef>) -> Self {
128 Self {
129 field: Some(field.into()),
130 ..self
131 }
132 }
133}
134
135impl<OffsetSize: OffsetSizeTrait, T: ArrayBuilder> ArrayBuilder

Calls

no outgoing calls