pub struct TranscodingError { /* private fields */ }Expand description
A malformed byte sequence encountered while strictly transcoding to UTF-8.
Implementations§
Source§impl TranscodingError
impl TranscodingError
Sourcepub fn malformed_sequence_length(&self) -> u8
pub fn malformed_sequence_length(&self) -> u8
The number of bytes in the malformed sequence.
Sourcepub fn bytes_after_malformed(&self) -> u8
pub fn bytes_after_malformed(&self) -> u8
The number of bytes consumed after the malformed sequence.
Trait Implementations§
Source§impl Debug for TranscodingError
impl Debug for TranscodingError
Source§impl Display for TranscodingError
impl Display for TranscodingError
impl Eq for TranscodingError
Source§impl Error for TranscodingError
impl Error for TranscodingError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for TranscodingError
impl PartialEq for TranscodingError
impl StructuralPartialEq for TranscodingError
Auto Trait Implementations§
impl Freeze for TranscodingError
impl RefUnwindSafe for TranscodingError
impl Send for TranscodingError
impl Sync for TranscodingError
impl Unpin for TranscodingError
impl UnsafeUnpin for TranscodingError
impl UnwindSafe for TranscodingError
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