Struct encoding_rs::shift_jis::ShiftJisEncoder
source · pub struct ShiftJisEncoder;
Implementations§
source§impl ShiftJisEncoder
impl ShiftJisEncoder
pub fn new(encoding: &'static Encoding) -> Encoder
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 ShiftJisEncoder
impl RefUnwindSafe for ShiftJisEncoder
impl Send for ShiftJisEncoder
impl Sync for ShiftJisEncoder
impl Unpin for ShiftJisEncoder
impl UnwindSafe for ShiftJisEncoder
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