pub trait IsConstantKernel: VTable {
// Required method
fn is_constant(
&self,
array: &Self::Array,
opts: &IsConstantOpts,
) -> VortexResult<Option<bool>>;
}
Required Methods§
Sourcefn is_constant(
&self,
array: &Self::Array,
opts: &IsConstantOpts,
) -> VortexResult<Option<bool>>
fn is_constant( &self, array: &Self::Array, opts: &IsConstantOpts, ) -> VortexResult<Option<bool>>
§Preconditions
- All values are valid
- array.len() > 1
Returns Ok(None)
to signal we couldn’t make an exact determination.
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.
Implementors§
impl IsConstantKernel for BoolVTable
impl IsConstantKernel for ChunkedVTable
impl IsConstantKernel for DecimalVTable
impl IsConstantKernel for ExtensionVTable
impl IsConstantKernel for FixedSizeListVTable
IsConstant implementation for FixedSizeListArray
.
Compares each list scalar against the first to determine if all lists are identical.