Function core::char::encode_utf8_raw [] [src]

pub fn encode_utf8_raw(code: u32, dst: &mut [u8]) -> Option<usize>
Unstable (char_internals)

: this function should not be exposed publicly

Encodes a raw u32 value as UTF-8 into the provided byte buffer, and then returns the number of bytes written.

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