# indexing_fmt


[]()
[](https://opensource.org/licenses/Apache-2.0)
[](https://docs.rs/indexing_fmt)
This crate allows the formatting of integer types as superscripts or subscripts.
It is written in pure safe Rust and `no_std` compatible.
```rust
use indexing_fmt::*;
let index = 12;
let name = format!("Ship{}", index.to_superscript());
assert_eq!(name, "Ship¹²");
let index = 840;
let name = format!("Docking-Bay{}", index.to_subscript());
assert_eq!(name, "Docking-Bay₈₄₀");
```