Struct encoding_rs::single_byte::SingleByteDecoder
source · pub struct SingleByteDecoder {
table: &'static [u16; 128],
}
Fields§
§table: &'static [u16; 128]
Implementations§
source§impl SingleByteDecoder
impl SingleByteDecoder
pub fn new(data: &'static [u16; 128]) -> 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)
pub fn latin1_byte_compatible_up_to(&self, buffer: &[u8]) -> usize
Auto Trait Implementations§
impl RefUnwindSafe for SingleByteDecoder
impl Send for SingleByteDecoder
impl Sync for SingleByteDecoder
impl Unpin for SingleByteDecoder
impl UnwindSafe for SingleByteDecoder
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