Skip to main content

dataloader_rs/
error.rs

1/// Any heap-allocated error that can cross thread boundaries.
2///
3/// Using a type alias here (rather than a custom enum) lets `Dataset` and
4/// `Collator` implementors return any error type they like via `?` — no
5/// conversion boilerplate required.
6pub type Error = Box<dyn std::error::Error + Send + Sync + 'static>;
7
8/// `Result` type used throughout the crate.
9pub type Result<T> = std::result::Result<T, Error>;