Macro roman_literals::roman
source · [−]macro_rules! roman {
(- $($rest:tt)*) => { ... };
($id:ident) => { ... };
}
Expand description
Write a constant Roman numeral.
Any number from I to MMMCMXCIX (1 to 3999) is allowed. Negative numbers can
be prefixed with -
. There is currently no way to write zero using this
macro.
Like numeric literals in Rust, the type of the literal is inferred, and the
default type is iXXXII
.
See the crate-level documentation for examples.