hamcty 0.5.0

Load and search country data for ham radio callsigns in the CTY database
Documentation
use std::error;
use std::fmt::{Display, Formatter};

#[derive(Debug, PartialEq)]
pub enum Error {
    CtyFileError(String),
    CSVError(String),
    ParseError(String),
    PrefixNotFound,
    CountryCodeNotFound,
    CountryNotFound,
    VersionNotFound,
    VersionEntityNotFound,
    #[cfg(feature = "load_cty")]
    DownloadConnectionError,
    #[cfg(feature = "load_cty")]
    DownloadResponseError(u16),
}

impl Display for Error {
    fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
        write!(f, "{:?}", self)
    }
}

impl error::Error for Error {}