compa_decimal 0.2.0

A compact and efficient decimal system using a custom character set for representing large numbers in fewer characters.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::fmt::Display;

#[derive(Debug, Default, Clone, PartialEq, Eq)]
pub struct CompaDecimalError {
    pub error_message: String,
}

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

impl std::error::Error for CompaDecimalError {}