buckets 0.1.0

O(n) integer sort
Documentation
  • Coverage
  • 0%
    0 out of 10 items documented0 out of 6 items with examples
  • Size
  • Source code size: 5.91 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.36 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • frogtd/buckets
    0 0 1
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • frogtd

buckets

buckets is a crate for sorting lots of things at once.

Installation

Add this to your Cargo.toml:

[dependencies]

mean = "0.1"

Usage

use buckets::SortWithBucket;
let mut input: Vec<u16> = vec![65444, 50, 12532, 121];
input.sort_with_buckets();

assert_eq!(input, vec![50, 121, 12532, 65444])

#![no_std]

Coming later.

Nightly

This is nightly because it's blocked on generic_const_exprs, because I need a constant used in the output of a trait that is also defined in that trait for arrays. Hopefully I can think of another way to do this.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Licenses