fcb_core 0.7.6

FlatCityBuf is a library for reading and writing CityJSON with FlatBuffers. Contains code derived from FlatGeobuf (BSD-2-Clause) for spatial indexing.
Documentation
use thiserror::Error;

#[derive(Error, Debug)]
pub enum Error {
    #[error("io error: {0}")]
    Io(#[from] std::io::Error),

    #[cfg(feature = "http")]
    #[error("http error: {0}")]
    Http(#[from] http_range_client::HttpError),

    #[error("rtree error: {0}")]
    RTreeError(String),
}

impl From<&str> for Error {
    fn from(s: &str) -> Self {
        Error::RTreeError(s.to_string())
    }
}