pub struct DecodeTextError {
pub byte_index: usize,
pub encoding: TextEncoding,
}Expand description
Error returned when strict byte decoding encounters malformed input.
Fields§
§byte_index: usizeByte offset where decoding first failed.
encoding: TextEncodingSource encoding that rejected the byte sequence.
Trait Implementations§
Source§impl Clone for DecodeTextError
impl Clone for DecodeTextError
Source§fn clone(&self) -> DecodeTextError
fn clone(&self) -> DecodeTextError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DecodeTextError
impl Debug for DecodeTextError
Source§impl Display for DecodeTextError
impl Display for DecodeTextError
Source§impl Error for DecodeTextError
impl Error for DecodeTextError
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 DecodeTextError
impl PartialEq for DecodeTextError
impl Eq for DecodeTextError
impl StructuralPartialEq for DecodeTextError
Auto Trait Implementations§
impl Freeze for DecodeTextError
impl RefUnwindSafe for DecodeTextError
impl Send for DecodeTextError
impl Sync for DecodeTextError
impl Unpin for DecodeTextError
impl UnwindSafe for DecodeTextError
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