Crate septem

source ·
Expand description

Septem

A library for working with roman numerals. Converting at will between strings, integers and roman numerals.

Examples

use septem::prelude::*;
use septem::*;

let sept: Roman = "vii".parse().unwrap();
assert_eq!(7, *sept);
assert_eq!("VII", sept.to_string());
assert_eq!("vii", sept.to_lowercase());

Modules

Structs

A Roman number

Enums

Representation of a roman digit
Error for Roman Numeral parsing

Type Definitions