Function konst::chr::from_u32

source ·
pub const fn from_u32(n: u32) -> Option<char>
Expand description

Fallible conversion from u32 to char, const equivalent of char::from_u32

§Example

use konst::{chr, option};

const AT: char = option::unwrap!(chr::from_u32(64));

assert_eq!(AT, '@');