pub trait ArrayBuiltins: Sized {
// Required methods
fn cast(&self, dtype: DType) -> VortexResult<ArrayRef>;
fn get_item(
&self,
field_name: impl Into<FieldName>,
) -> VortexResult<ArrayRef>;
fn is_null(&self) -> VortexResult<ArrayRef>;
fn mask(&self, mask: &ArrayRef) -> VortexResult<ArrayRef>;
fn not(&self) -> VortexResult<ArrayRef>;
}Required Methods§
Sourcefn cast(&self, dtype: DType) -> VortexResult<ArrayRef>
fn cast(&self, dtype: DType) -> VortexResult<ArrayRef>
Cast to the given data type.
Sourcefn get_item(&self, field_name: impl Into<FieldName>) -> VortexResult<ArrayRef>
fn get_item(&self, field_name: impl Into<FieldName>) -> VortexResult<ArrayRef>
Get item by field name (for struct types).
Sourcefn is_null(&self) -> VortexResult<ArrayRef>
fn is_null(&self) -> VortexResult<ArrayRef>
Is null check.
Sourcefn mask(&self, mask: &ArrayRef) -> VortexResult<ArrayRef>
fn mask(&self, mask: &ArrayRef) -> VortexResult<ArrayRef>
Mask the array using the given boolean mask. The resulting array’s validity is the intersection of the original array’s validity and the mask’s validity.
Sourcefn not(&self) -> VortexResult<ArrayRef>
fn not(&self) -> VortexResult<ArrayRef>
Boolean negation.
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.