Struct encoding_rs::utf_8::Utf8Decoder
source · pub struct Utf8Decoder {
code_point: u32,
bytes_seen: usize,
bytes_needed: usize,
lower_boundary: u8,
upper_boundary: u8,
}
Fields§
§code_point: u32
§bytes_seen: usize
§bytes_needed: usize
§lower_boundary: u8
§upper_boundary: u8
Implementations§
source§impl Utf8Decoder
impl Utf8Decoder
pub fn new_inner() -> Utf8Decoder
pub fn new() -> VariantDecoder
pub fn in_neutral_state(&self) -> bool
fn extra_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 Utf8Decoder
impl RefUnwindSafe for Utf8Decoder
impl Send for Utf8Decoder
impl Sync for Utf8Decoder
impl Unpin for Utf8Decoder
impl UnwindSafe for Utf8Decoder
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