Struct encoding_rs::shift_jis::ShiftJisDecoder
source · pub struct ShiftJisDecoder {
lead: Option<u8>,
}
Fields§
§lead: Option<u8>
Implementations§
source§impl ShiftJisDecoder
impl ShiftJisDecoder
pub fn new() -> VariantDecoder
pub fn in_neutral_state(&self) -> bool
fn plus_one_if_lead(&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 ShiftJisDecoder
impl RefUnwindSafe for ShiftJisDecoder
impl Send for ShiftJisDecoder
impl Sync for ShiftJisDecoder
impl Unpin for ShiftJisDecoder
impl UnwindSafe for ShiftJisDecoder
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