ordnl
A Rust library for formatting ordinal numbers.
Usage
Add this to your Cargo.toml:
[dependencies]
ordnl = "1.0.3"
Example
use ordnl;
fn main() {
println!("{}", ordnl::of_u8(0u8)); println!("{}", ordnl::of_u8(1u8)); println!("{}", ordnl::of_u8(2u8)); println!("{}", ordnl::of_u8(3u8)); println!("{}", ordnl::of_u8(4u8));
println!("{}", ordnl::of_u8(0u8)); println!("{}", ordnl::of_u16(1u16)); println!("{}", ordnl::of_u32(2u32)); println!("{}", ordnl::of_u64(3u64)); println!("{}", ordnl::of_u128(4u128)); }