pub struct EnhancedDecoder { /* private fields */ }Expand description
Enhanced character decoder implementation
Implementations§
Source§impl EnhancedDecoder
impl EnhancedDecoder
Sourcepub fn get_issues(&self) -> &[EncodingIssue]
pub fn get_issues(&self) -> &[EncodingIssue]
Get the current issue log
Trait Implementations§
Source§impl CharacterDecoder for EnhancedDecoder
impl CharacterDecoder for EnhancedDecoder
Source§fn decode(
&self,
bytes: &[u8],
options: &EncodingOptions,
) -> Result<EncodingResult, PdfError>
fn decode( &self, bytes: &[u8], options: &EncodingOptions, ) -> Result<EncodingResult, PdfError>
Decode bytes to string with encoding detection
Source§fn detect_encoding(&self, bytes: &[u8]) -> Option<EncodingType>
fn detect_encoding(&self, bytes: &[u8]) -> Option<EncodingType>
Detect the most likely encoding for the given bytes
Source§fn decode_with_encoding(
&self,
bytes: &[u8],
encoding: EncodingType,
lenient: bool,
) -> Result<String, PdfError>
fn decode_with_encoding( &self, bytes: &[u8], encoding: EncodingType, lenient: bool, ) -> Result<String, PdfError>
Convert bytes using a specific encoding
Auto Trait Implementations§
impl Freeze for EnhancedDecoder
impl RefUnwindSafe for EnhancedDecoder
impl Send for EnhancedDecoder
impl Sync for EnhancedDecoder
impl Unpin for EnhancedDecoder
impl UnwindSafe for EnhancedDecoder
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