pub struct Utf8Encoder;Implementations§
Source§impl Utf8Encoder
impl Utf8Encoder
pub fn new(encoding: &'static Encoding) -> Encoder
pub fn max_buffer_length_from_utf16_without_replacement( &self, u16_length: usize, ) -> Option<usize>
pub fn max_buffer_length_from_utf8_without_replacement( &self, byte_length: usize, ) -> Option<usize>
pub fn encode_from_utf16_raw( &mut self, src: &[u16], dst: &mut [u8], _last: bool, ) -> (EncoderResult, usize, usize)
pub fn encode_from_utf8_raw( &mut self, src: &str, dst: &mut [u8], _last: bool, ) -> (EncoderResult, usize, usize)
Auto Trait Implementations§
impl Freeze for Utf8Encoder
impl RefUnwindSafe for Utf8Encoder
impl Send for Utf8Encoder
impl Sync for Utf8Encoder
impl Unpin for Utf8Encoder
impl UnsafeUnpin for Utf8Encoder
impl UnwindSafe for Utf8Encoder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more