pub enum VariantDecoder {
SingleByte(SingleByteDecoder),
Utf8(Utf8Decoder),
Gb18030(Gb18030Decoder),
Big5(Big5Decoder),
EucJp(EucJpDecoder),
Iso2022Jp(Iso2022JpDecoder),
ShiftJis(ShiftJisDecoder),
EucKr(EucKrDecoder),
Replacement(ReplacementDecoder),
UserDefined(UserDefinedDecoder),
Utf16(Utf16Decoder),
}Variants§
SingleByte(SingleByteDecoder)
Utf8(Utf8Decoder)
Gb18030(Gb18030Decoder)
Big5(Big5Decoder)
EucJp(EucJpDecoder)
Iso2022Jp(Iso2022JpDecoder)
ShiftJis(ShiftJisDecoder)
EucKr(EucKrDecoder)
Replacement(ReplacementDecoder)
UserDefined(UserDefinedDecoder)
Utf16(Utf16Decoder)
Implementations§
Source§impl VariantDecoder
impl VariantDecoder
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_utf16_raw( &mut self, src: &[u8], dst: &mut [u16], last: bool, ) -> (DecoderResult, usize, usize)
pub fn decode_to_utf8_raw( &mut self, src: &[u8], dst: &mut [u8], last: bool, ) -> (DecoderResult, usize, usize)
pub fn latin1_byte_compatible_up_to(&self, buffer: &[u8]) -> Option<usize>
Auto Trait Implementations§
impl Freeze for VariantDecoder
impl RefUnwindSafe for VariantDecoder
impl Send for VariantDecoder
impl Sync for VariantDecoder
impl Unpin for VariantDecoder
impl UnsafeUnpin for VariantDecoder
impl UnwindSafe for VariantDecoder
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