pub trait OutputElement:
'static
+ Sized
+ Default {
// Required methods
fn element_dtype() -> DType;
fn build(values: Vec<Self>) -> ArrayRef;
}Expand description
An owned row value that can be built into an all-valid column.
Skip-invalid execution uses Default only as a placeholder for invalid rows. Batch execution
masks those rows before returning the output.
Required Methods§
Sourcefn element_dtype() -> DType
fn element_dtype() -> DType
The dtype of columns built from this element type. Must be non-nullable: nullability is derived from the inputs by batch execution.
Because this method takes no arguments, the dtype must be a property of the Rust type. Use
an OutputSink when the output dtype depends on function options.
Sourcefn build(values: Vec<Self>) -> ArrayRef
fn build(values: Vec<Self>) -> ArrayRef
Build an all-valid column from one value per row.
The returned column must contain values.len() rows and match
element_dtype except for outer nullability. The framework calls
this method once per batch.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".