Struct encoding_rs::gb18030::Gb18030Decoder
source · pub struct Gb18030Decoder {
first: Option<u8>,
second: Option<u8>,
third: Option<u8>,
pending: Gb18030Pending,
pending_ascii: Option<u8>,
}
Fields§
§first: Option<u8>
§second: Option<u8>
§third: Option<u8>
§pending: Gb18030Pending
§pending_ascii: Option<u8>
Implementations§
source§impl Gb18030Decoder
impl Gb18030Decoder
pub fn new() -> VariantDecoder
pub fn in_neutral_state(&self) -> bool
fn extra_from_state(&self, byte_length: usize) -> Option<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 Gb18030Decoder
impl RefUnwindSafe for Gb18030Decoder
impl Send for Gb18030Decoder
impl Sync for Gb18030Decoder
impl Unpin for Gb18030Decoder
impl UnwindSafe for Gb18030Decoder
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