Trait ransel::select::Select

source ·
pub trait Select: ImpliedSet {
    // Required method
    fn select(&self, index: usize) -> u64;
}
Expand description

The Select trait exists for data structures that support the select operation, which for a given value i, returns the i-th smallest value in the implied set (counting from 0).

Required Methods§

source

fn select(&self, index: usize) -> u64

Return the i-th smallest element of the set (counting from 0).

index is a rank within the implied set: [0, self.count()).

Implementors§