1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
//! # XVII //! //! ...Pronounced any way you like--including "seventeen." //! //! This library provides parsing and formatting for Roman numerals. According to my //! (probably extremely suspect) benchmarks, this is the best-performing library of //! its kind available on crates.io (you know, as of St. Patrick's Day, 2017 when I //! did the tests), so you should definitely employ it in your high-availability NAAS //! (numerals-as-a-service) project. //! //! (Seriously, though, read the license--no warranties implied!) //! //! ```rust //! # use xvii::Roman; //! let seventeen: Roman = "XVII".parse().unwrap(); //! assert_eq!(17, *seventeen); //! assert_eq!("XVII", seventeen.to_string()); //! //! let seventeen = Roman::from(17).unwrap(); //! assert_eq!(17, *seventeen); //! assert_eq!("XVII", seventeen.to_string()); //! ``` mod error; mod roman; mod unit; pub use error::Error; pub use roman::Roman;