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