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.