Struct encoding_rs::x_user_defined::UserDefinedDecoder
source · pub struct UserDefinedDecoder;
Implementations§
source§impl UserDefinedDecoder
impl UserDefinedDecoder
pub fn new() -> 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_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 UserDefinedDecoder
impl RefUnwindSafe for UserDefinedDecoder
impl Send for UserDefinedDecoder
impl Sync for UserDefinedDecoder
impl Unpin for UserDefinedDecoder
impl UnwindSafe for UserDefinedDecoder
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