Ordinals (1st, 2nd, 3rd etc) for Rust
This crate provides a type Ordinal<T>
that formats an Integer
type T
as an ordinal number (1st, 2nd, 3rd, etc).
Install
Just add the following line to your Cargo.toml
file:
[]
= "0.3.2"
Example
use Ordinal;
Ownership Context
I am not the original author of this crate. The original author, @dtolnay, didn't want to maintain the crate anymore so he gave it to me. This means that I am the official maintainer of this package. If you want to see where this decision was made check the GitHub issue.