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