pub trait FillNullKernel: VTable {
// Required method
fn fill_null(
&self,
array: &Self::Array,
fill_value: &Scalar,
) -> VortexResult<ArrayRef>;
}Required Methods§
Sourcefn fill_null(
&self,
array: &Self::Array,
fill_value: &Scalar,
) -> VortexResult<ArrayRef>
fn fill_null( &self, array: &Self::Array, fill_value: &Scalar, ) -> VortexResult<ArrayRef>
Kernel for replacing null values in an array with a fill value.
TODO(connor): Actually enforce these constraints (so that casts do not fail).
Implementations can assume that:
- The array has at least one null value (not all valid, not all invalid).
- The fill value is non-null.
- For decimal arrays, the fill value can be successfully cast to the array’s storage type.
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.