kv_extsort/lib.rs
1mod chunk;
2mod merge;
3mod sorter;
4
5pub use sorter::{sort, SortConfig};
6use thiserror::Error;
7
8#[derive(Error, Debug)]
9pub enum Error<E> {
10 #[error("An error occurred")]
11 IO(#[from] std::io::Error),
12 #[error("Canceled")]
13 Canceled,
14 #[error("Source error")]
15 Source(E),
16}
17
18pub type Result<T, E> = std::result::Result<T, Error<E>>;