Function regex::utf8::encode_utf8 [−][src]
pub fn encode_utf8(character: char, dst: &mut [u8]) -> Option<usize>
Encode the given Unicode character to dst
as a single UTF-8 sequence.
If dst
is not long enough, then None
is returned. Otherwise, the number
of bytes written is returned.