gridish 2.0.0

Library for working with British and Irish national grid strings.
Documentation
use std::{num::ParseIntError};

use thiserror::Error;

#[derive(Debug, Error, PartialEq, Eq)]
pub enum OutOfBoundsError {
    #[error("Eastings is out of bounds")]
    Eastings,
    #[error("Northings is out of bounds")]
    Northings,
    #[error("Eastings and Northings are out of bounds")]
    Both,
}

#[derive(Debug, Error, PartialEq, Eq)]
pub enum ParseError {
    #[error(transparent)]
    OutOfBounds(#[from] OutOfBoundsError),
    #[error(transparent)]
    ParseInt(#[from] ParseIntError),
    #[error("{0}")]
    InvalidString(String),
}