collate

Crates.iocollate
lib.rscollate
version0.4.2
sourcesrc
created_at2021-01-05 23:53:02.222905
updated_at2024-08-13 22:33:27.890681
descriptionTraits and a data structure to support collation and bisection
homepage
repositoryhttp://github.com/haydnv/collate
max_upload_size
id332526
size46,926
Haydn Vestal (haydnv)

documentation

README

collate

Rust collation utilities

Example usage:

use collate::*;

let collator = Collator::default();
let collection = [
    [1, 2, 3],
    [2, 3, 4],
    [3, 4, 5],
];

assert_eq!(collator.bisect_left(&collection, &[1]), 0);
assert_eq!(collator.bisect_right(&collection, &[1]), 1);
Commit count: 0

cargo fmt