2 releases (1 stable)
Uses old Rust 2015
1.0.0 | Feb 7, 2019 |
---|---|
0.1.0 | Feb 9, 2018 |
#989 in Algorithms
36,787 downloads per month
Used in 53 crates
(23 directly)
24KB
308 lines
This crate provides extensions for slice
s.
Licensed under APACHE-2.
Documentation
Installation
This crate works with Cargo and is on
crates.io. Add it to your Cargo.toml
:
[dependencies]
superslice = "1"
and augment slice
s by using its Ext
trait:
extern crate superslice;
use superslice::*;
Now you can enjoy high performance of common algorithms on slices:
lower_bound
upper_bound
equal_range
Why isn't this part of the standard library?
Worry not, work is on the way:
- Make
binary_search
as fast as: https://github.com/rust-lang/rust/pull/45333fast_binary_search
- Add
lower_bound
,upper_bound
,equal_range
to std: https://github.com/rust-lang/rfcs/issues/2184