1use std::fmt::Debug; 2use thiserror::Error; 3 4/// Enum with all errors in this crate. 5#[derive(Error, Debug)] 6pub enum GeoIndexError { 7 /// General errors 8 #[error("General error: {0}")] 9 General(String), 10} 11 12pub type Result<T> = std::result::Result<T, GeoIndexError>;