Function roman::to [] [src]

pub fn to(n: i32) -> Option<String>

Converts an integer into a roman numeral.

Works for integer between 1 and 3999 inclusive, returns None otherwise.

Example

let x = roman::to(14);
assert_eq!(x.unwrap(), "XIV");