null-kane
This is a Rust crate designed for currency manipulation. It provides an interface via a trait for implementing localization methods. The trait enables retrieval of the currency separator, thousand separator, and currency symbol.
Features
Localization Methods
get_separator: Retrieves the separator used for the currency.get_thousand_separator: Retrieves the thousand separator used for the currency.get_currency_symbol: Retrieves the currency symbol.
Arithmetic Operations
The crate implements arithmetic operations for the following types:
- Addition, multiplication, and division among currencies.
- Addition, multiplication, and division between currencies and
usize. - Addition, multiplication, and division between currencies and
f32. - Addition, multiplication, and division between currencies and
f64.
Constructors
From implementations for creating instances from f32 and f64.
Example
use ;
License
This project is licensed under the MIT License. See the LICENSE file for details.