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

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

: this function should not be exposed publicly

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

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