Struct encoding_rs::iso_2022_jp::Iso2022JpDecoder
source · pub struct Iso2022JpDecoder {
decoder_state: Iso2022JpDecoderState,
output_state: Iso2022JpDecoderState,
lead: u8,
output_flag: bool,
pending_prepended: bool,
}
Fields§
§decoder_state: Iso2022JpDecoderState
§output_state: Iso2022JpDecoderState
§lead: u8
§output_flag: bool
§pending_prepended: bool
Implementations§
source§impl Iso2022JpDecoder
impl Iso2022JpDecoder
pub fn new() -> VariantDecoder
pub fn in_neutral_state(&self) -> bool
fn extra_to_input_from_state(&self, byte_length: usize) -> Option<usize>
fn extra_to_output_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 Iso2022JpDecoder
impl RefUnwindSafe for Iso2022JpDecoder
impl Send for Iso2022JpDecoder
impl Sync for Iso2022JpDecoder
impl Unpin for Iso2022JpDecoder
impl UnwindSafe for Iso2022JpDecoder
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