Enum encoding_rs::variant::VariantEncoder
source · pub enum VariantEncoder {
SingleByte(SingleByteEncoder),
Utf8(Utf8Encoder),
Gb18030(Gb18030Encoder),
Big5(Big5Encoder),
EucJp(EucJpEncoder),
Iso2022Jp(Iso2022JpEncoder),
ShiftJis(ShiftJisEncoder),
EucKr(EucKrEncoder),
UserDefined(UserDefinedEncoder),
}
Variants§
SingleByte(SingleByteEncoder)
Utf8(Utf8Encoder)
Gb18030(Gb18030Encoder)
Big5(Big5Encoder)
EucJp(EucJpEncoder)
Iso2022Jp(Iso2022JpEncoder)
ShiftJis(ShiftJisEncoder)
EucKr(EucKrEncoder)
UserDefined(UserDefinedEncoder)
Implementations§
source§impl VariantEncoder
impl VariantEncoder
pub fn has_pending_state(&self) -> bool
pub fn max_buffer_length_from_utf16_without_replacement( &self, u16_length: usize, ) -> Option<usize>
pub fn max_buffer_length_from_utf8_without_replacement( &self, byte_length: usize, ) -> Option<usize>
pub fn encode_from_utf16_raw( &mut self, src: &[u16], dst: &mut [u8], last: bool, ) -> (EncoderResult, usize, usize)
pub fn encode_from_utf8_raw( &mut self, src: &str, dst: &mut [u8], last: bool, ) -> (EncoderResult, usize, usize)
Auto Trait Implementations§
impl Freeze for VariantEncoder
impl RefUnwindSafe for VariantEncoder
impl Send for VariantEncoder
impl Sync for VariantEncoder
impl Unpin for VariantEncoder
impl UnwindSafe for VariantEncoder
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