Function redox::char::from_u32 [] [src]

pub fn from_u32(i: u32) -> Option<char>

Converts a u32 to an Option<char>.

Examples

use std::char;

assert_eq!(char::from_u32(0x2764), Some('❤'));
assert_eq!(char::from_u32(0x110000), None); // invalid character