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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().