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 Bool
impl IsConstantKernel for Chunked
impl IsConstantKernel for Decimal
impl IsConstantKernel for Dict
impl IsConstantKernel for Extension
impl IsConstantKernel for FixedSizeList
IsConstant implementation for FixedSizeListArray.
Compares each list scalar against the first to determine if all lists are identical.