Latin language utility library for Rust.
Numerus
structNumeri are integer Roman numbers in the inclusive range 1..=3999
. Like other Rust integers,
math operations on Numeri will panic on overflow in debug builds.
rust
use ordo::Numerus;
let xlii = Numerus::try_from(42).unwrap();
let ix = Numerus::try_from(9).unwrap();
let xxxiii = xlii - ix;
println!("The answer is {}", xxxiii);
// prints "XXXIII"
ordo
is made available under a BSD-style license; see the LICENSE
file for
details.