grid_tariffs/
currency.rs

1#[allow(clippy::upper_case_acronyms)]
2#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]
3pub enum Currency {
4    SEK,
5}
6
7impl Currency {
8    pub const fn sign(&self) -> &'static str {
9        match self {
10            Self::SEK => "kr",
11        }
12    }
13
14    pub const fn subunit_sign(&self) -> &'static str {
15        match self {
16            Self::SEK => "öre",
17        }
18    }
19}