petal_neighbors/
lib.rs

1mod ball_tree;
2pub mod distance;
3mod vantage_point_tree;
4
5pub use ball_tree::BallTree;
6use thiserror::Error;
7pub use vantage_point_tree::VantagePointTree;
8
9/// The error type for input arrays.
10#[derive(Debug, Error)]
11pub enum ArrayError {
12    #[error("array is empty")]
13    Empty,
14    #[error("array is not contiguous in memory")]
15    NotContiguous,
16}