Trait vortex_array::compute::IndexOrd

source ·
pub trait IndexOrd<V> {
    // Required method
    fn index_cmp(&self, idx: usize, elem: &V) -> Option<Ordering>;

    // Provided methods
    fn index_lt(&self, idx: usize, elem: &V) -> bool { ... }
    fn index_le(&self, idx: usize, elem: &V) -> bool { ... }
    fn index_gt(&self, idx: usize, elem: &V) -> bool { ... }
    fn index_ge(&self, idx: usize, elem: &V) -> bool { ... }
}

Required Methods§

source

fn index_cmp(&self, idx: usize, elem: &V) -> Option<Ordering>

PartialOrd of the value at index idx with elem. For example, if self[idx] > elem, return Some(Greater).

Provided Methods§

source

fn index_lt(&self, idx: usize, elem: &V) -> bool

source

fn index_le(&self, idx: usize, elem: &V) -> bool

source

fn index_gt(&self, idx: usize, elem: &V) -> bool

source

fn index_ge(&self, idx: usize, elem: &V) -> bool

Implementations on Foreign Types§

source§

impl<T: PartialOrd> IndexOrd<T> for [T]

source§

fn index_cmp(&self, idx: usize, elem: &T) -> Option<Ordering>

Implementors§

source§

impl IndexOrd<Scalar> for ArrayData