Function core::char::encode_utf16_raw [] [src]

pub fn encode_utf16_raw(ch: u32, dst: &mut [u16]) -> Option<usize>
Unstable

Encodes a raw u32 value as UTF-16 into the provided u16`u16buffer, and then returns the number of` buffer, and then returns the number of u16`u16`s written.

If the buffer is not large enough, nothing will be written into it and a None`None` will be returned.