pub trait IsSortedFn<A> {
// Required methods
fn is_sorted(&self, array: A) -> VortexResult<bool>;
fn is_strict_sorted(&self, array: A) -> VortexResult<bool>;
}
Required Methods§
Sourcefn is_sorted(&self, array: A) -> VortexResult<bool>
fn is_sorted(&self, array: A) -> 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.