[−][src]Function ordnl::of_u32
pub fn of_u32(n: u32) -> String
Ordinalizes a u32
integer.
let first = ordnl::of_u32(1u32); let second = ordnl::of_u32(2u32); let third = ordnl::of_u32(3u32); let fourth = ordnl::of_u32(4u32); assert_eq!(first, "1st"); assert_eq!(second, "2nd"); assert_eq!(third, "3rd"); assert_eq!(fourth, "4th");