Trait IsSortedFn

Source
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§

Source

fn is_sorted(&self, array: A) -> VortexResult<bool>

§Preconditions
  • The array’s length is > 1.
  • The array is not encoded as NullArray or ConstantArray.
  • 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.
Source

fn is_strict_sorted(&self, array: A) -> VortexResult<bool>

Implementors§