Trait utf::UtfExt [−][src]
pub trait UtfExt: UtfExtSealed { type UtfSlice: ?Sized; fn try_encode_utf8(self, bs: &mut [u8]) -> Option<&mut Self::UtfSlice>; }
Associated Types
Required Methods
fn try_encode_utf8(self, bs: &mut [u8]) -> Option<&mut Self::UtfSlice>
Encode the character into the given buffer; return None
if the buffer is too short.