Crate ordslice

Source
Expand description

This crate provides extensions for ordered slices.

§Examples

use ordslice::Ext;
 
let b = [1, 3];
 
assert_eq!(b.lower_bound(&1), 0);
 
assert_eq!(b.upper_bound(&1), 1);
 
assert_eq!(b.equal_range(&3), 1..2);

Traits§

  • Extends slice with fast operations on ordered slices.