pub trait IsSortedKernel: VTable {
// Required methods
fn is_sorted(&self, array: &Self::Array) -> VortexResult<bool>;
fn is_strict_sorted(&self, array: &Self::Array) -> VortexResult<bool>;
}
Required Methods§
Sourcefn is_sorted(&self, array: &Self::Array) -> VortexResult<bool>
fn is_sorted(&self, array: &Self::Array) -> VortexResult<bool>
§Preconditions
- The array’s length is > 1.
- The array is not encoded as
NullArray
orConstantArray
. - If doing a
strict
check, if the array is nullable, it’ll have at most 1 null element as the first item in the array.
fn is_strict_sorted(&self, array: &Self::Array) -> VortexResult<bool>
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.