tg-geom 0.0.0

Rust bindings for the `TG` Geometry library.
Documentation
//! Error types.

use thiserror::Error;

#[derive(Debug, Error)]
pub enum Error {
    #[error("WKT parse error: {0}")]
    WktParse(String),
    #[error("WKB parse error: {0}")]
    WkbParse(String),
    #[error("GeoJSON parse error: {0}")]
    GeoJsonParse(String),
    #[error("HEX parse error: {0}")]
    HexParse(String),
    #[error("GeoBin parse error: {0}")]
    GeoBinParse(String),
    #[error("Parse error: {0}")]
    Parse(String),
    #[error("Out of memory")]
    OutOfMemory,
    #[error("Copy failed")]
    CopyFailed,
}

pub type Result<T> = core::result::Result<T, Error>;