Trait utf::UtfExt

source ·
pub trait UtfExt: UtfExtSealed {
    type UtfSlice: ?Sized;

    fn try_encode_utf8(self, bs: &mut [u8]) -> Option<&mut Self::UtfSlice>;
}

Required Associated Types

Required Methods

Encode the character into the given buffer; return None if the buffer is too short.

Implementations on Foreign Types

Implementors