pub struct Utf16Decoder {
lead_surrogate: u16,
lead_byte: Option<u8>,
be: bool,
pending_bmp: bool,
}Fields§
§lead_surrogate: u16§lead_byte: Option<u8>§be: bool§pending_bmp: boolImplementations§
Source§impl Utf16Decoder
impl Utf16Decoder
pub fn new(big_endian: bool) -> VariantDecoder
pub fn additional_from_state(&self) -> usize
pub fn max_utf16_buffer_length(&self, byte_length: usize) -> Option<usize>
pub fn max_utf8_buffer_length_without_replacement( &self, byte_length: usize, ) -> Option<usize>
pub fn max_utf8_buffer_length(&self, byte_length: usize) -> Option<usize>
pub fn decode_to_utf8_raw( &mut self, src: &[u8], dst: &mut [u8], last: bool, ) -> (DecoderResult, usize, usize)
pub fn decode_to_utf16_raw( &mut self, src: &[u8], dst: &mut [u16], last: bool, ) -> (DecoderResult, usize, usize)
Auto Trait Implementations§
impl Freeze for Utf16Decoder
impl RefUnwindSafe for Utf16Decoder
impl Send for Utf16Decoder
impl Sync for Utf16Decoder
impl Unpin for Utf16Decoder
impl UnsafeUnpin for Utf16Decoder
impl UnwindSafe for Utf16Decoder
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