ordo

Crates.ioordo
lib.rsordo
version0.1.1
sourcesrc
created_at2021-09-20 04:26:26.832561
updated_at2021-09-22 22:58:57.231699
descriptionLatin language utility library for Rust.
homepage
repositoryhttps://github.com/donmccaughey/ordo
max_upload_size
id453828
size20,488
Don McCaughey (donmccaughey)

documentation

README

ordo

Latin language utility library for Rust.

Tests

Usage

Numerus struct

Numeri 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.

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"

License

ordo is made available under a BSD-style license; see the LICENSE file for details.

Commit count: 104

cargo fmt