Crates.io | ex_merge_sort_by_key |
lib.rs | ex_merge_sort_by_key |
version | 0.2.0 |
source | src |
created_at | 2021-08-22 06:36:15.087016 |
updated_at | 2021-08-26 04:42:48.553427 |
description | Rust external merge sort library |
homepage | |
repository | https://github.com/winebarrel/ex_merge_sort_by_key |
max_upload_size | |
id | 440560 |
size | 27,384 |
Rust external merge sort library using sort_by_cached_key.
[dependencies]
ex_merge_sort_by_key = "0.1"
use std::fs::File;
use std::io;
fn main() {
let f = File::open("README.md").unwrap();
let capacity = 1024;
ex_merge_sort_by_key::sort_by_key(f, io::stdout(), capacity, |line| line.len()).unwrap();
}