romans

Crates.ioromans
lib.rsromans
version0.1.0
sourcesrc
created_at2024-08-05 22:49:02.498522
updated_at2024-08-05 22:49:02.498522
descriptionUtility to convert and represent Roman numerals.
homepage
repositoryhttps://github.com/jfaleiro/romans
max_upload_size
id1326623
size67,949
(jfaleiro)

documentation

README

romans

A roman numeral convertor

Example

use romans::prelude::*;

fn main() -> Result<()> {
    assert_eq!(123, Numeral::try_from("cxxiii")?.value());
    assert_eq!(
        "cxxiii",
        Numeral::from(123)
            .as_string()
            .to_lowercase()
    );
    Ok(())
}
Commit count: 0

cargo fmt