Struct encoding_rs::iso_2022_jp::Iso2022JpEncoder
source · pub struct Iso2022JpEncoder {
state: Iso2022JpEncoderState,
}
Fields§
§state: Iso2022JpEncoderState
Implementations§
source§impl Iso2022JpEncoder
impl Iso2022JpEncoder
pub fn new(encoding: &'static Encoding) -> Encoder
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_utf8_raw( &mut self, src: &str, dst: &mut [u8], last: bool, ) -> (EncoderResult, usize, usize)
pub fn encode_from_utf16_raw( &mut self, src: &[u16], dst: &mut [u8], last: bool, ) -> (EncoderResult, usize, usize)
Auto Trait Implementations§
impl Freeze for Iso2022JpEncoder
impl RefUnwindSafe for Iso2022JpEncoder
impl Send for Iso2022JpEncoder
impl Sync for Iso2022JpEncoder
impl Unpin for Iso2022JpEncoder
impl UnwindSafe for Iso2022JpEncoder
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