datex-core 0.0.12

The DATEX Core Rust implementation
Documentation
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum NumberParseError {
    InvalidFormat,
    OutOfRange,
}

impl core::fmt::Display for NumberParseError {
    fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
        match self {
            NumberParseError::InvalidFormat => {
                core::write!(f, "The number format is invalid.")
            }
            NumberParseError::OutOfRange => {
                core::write!(
                    f,
                    "The number is out of range for the specified type."
                )
            }
        }
    }
}