pub trait RowBuilder<Row> {
type Arrays: IntoRecordBatch;
// Required methods
fn append_row(&mut self, row: Row);
fn append_null_row(&mut self);
fn append_option_row(&mut self, row: Option<Row>);
fn append_rows<I: IntoIterator<Item = Row>>(&mut self, rows: I);
fn append_option_rows<I: IntoIterator<Item = Option<Row>>>(
&mut self,
rows: I,
);
fn finish(self) -> Self::Arrays;
}
Expand description
Trait implemented by derive-generated builders to append rows of Row
and finish into a typed arrays struct.
Required Associated Types§
Sourcetype Arrays: IntoRecordBatch
type Arrays: IntoRecordBatch
The arrays struct produced by finish
.
Required Methods§
Sourcefn append_row(&mut self, row: Row)
fn append_row(&mut self, row: Row)
Append a non-null row.
Sourcefn append_null_row(&mut self)
fn append_null_row(&mut self)
Append a null row.
Sourcefn append_option_row(&mut self, row: Option<Row>)
fn append_option_row(&mut self, row: Option<Row>)
Append an optional row.
Sourcefn append_rows<I: IntoIterator<Item = Row>>(&mut self, rows: I)
fn append_rows<I: IntoIterator<Item = Row>>(&mut self, rows: I)
Append an iterator of non-null rows.
Sourcefn append_option_rows<I: IntoIterator<Item = Option<Row>>>(&mut self, rows: I)
fn append_option_rows<I: IntoIterator<Item = Option<Row>>>(&mut self, rows: I)
Append an iterator of optional rows.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.