Trait numeral::Cardinal
[−]
[src]
pub trait Cardinal { fn cardinal(&self) -> String; }
Provides the cardinal written form of a number.
Required Methods
fn cardinal(&self) -> String
Yields the cardinal form of a number.
Examples
let written_form = 127.cardinal(); assert_eq!(written_form, "one hundred twenty-seven");