Struct encoding_rs::replacement::ReplacementDecoder
source · pub struct ReplacementDecoder {
emitted: bool,
}
Fields§
§emitted: bool
Implementations§
source§impl ReplacementDecoder
impl ReplacementDecoder
pub fn new() -> VariantDecoder
pub fn max_utf16_buffer_length(&self, _u16_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_utf16_raw( &mut self, src: &[u8], dst: &mut [u16], _last: bool, ) -> (DecoderResult, usize, usize)
pub fn decode_to_utf8_raw( &mut self, src: &[u8], dst: &mut [u8], _last: bool, ) -> (DecoderResult, usize, usize)
Auto Trait Implementations§
impl Freeze for ReplacementDecoder
impl RefUnwindSafe for ReplacementDecoder
impl Send for ReplacementDecoder
impl Sync for ReplacementDecoder
impl Unpin for ReplacementDecoder
impl UnwindSafe for ReplacementDecoder
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