pub struct TextDecodingError { /* private fields */ }Expand description
Errors that can occur while decoding text
Implementations§
Source§impl TextDecodingError
impl TextDecodingError
Sourcepub fn encoding(&self) -> TextEncoding
pub fn encoding(&self) -> TextEncoding
The target text encoding
Sourcepub fn valid_up_to(&self) -> Option<usize>
pub fn valid_up_to(&self) -> Option<usize>
The byte index in the provided string up to which the input was valid, if available
Trait Implementations§
Source§impl Debug for TextDecodingError
impl Debug for TextDecodingError
Source§impl Display for TextDecodingError
impl Display for TextDecodingError
Source§impl Error for TextDecodingError
impl Error for TextDecodingError
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 From<FromUtf8Error> for TextDecodingError
impl From<FromUtf8Error> for TextDecodingError
Source§fn from(err: FromUtf8Error) -> Self
fn from(err: FromUtf8Error) -> Self
Converts to this type from the input type.
Source§impl From<FromUtf16Error> for TextDecodingError
impl From<FromUtf16Error> for TextDecodingError
Source§fn from(err: FromUtf16Error) -> Self
fn from(err: FromUtf16Error) -> Self
Converts to this type from the input type.
Source§impl From<TextDecodingError> for PictureParseError
impl From<TextDecodingError> for PictureParseError
Source§fn from(value: TextDecodingError) -> PictureParseError
fn from(value: TextDecodingError) -> PictureParseError
Converts to this type from the input type.
Source§impl From<TextDecodingError> for FrameParseError
impl From<TextDecodingError> for FrameParseError
Source§fn from(input: TextDecodingError) -> Self
fn from(input: TextDecodingError) -> Self
Converts to this type from the input type.
Source§impl From<TextDecodingError> for Lyrics3v2ParseError
impl From<TextDecodingError> for Lyrics3v2ParseError
Source§fn from(input: TextDecodingError) -> Self
fn from(input: TextDecodingError) -> Self
Converts to this type from the input type.
Source§impl From<TextDecodingError> for AiffParseError
impl From<TextDecodingError> for AiffParseError
Source§fn from(value: TextDecodingError) -> AiffParseError
fn from(value: TextDecodingError) -> AiffParseError
Converts to this type from the input type.
Source§impl From<TextDecodingError> for ChunkParseError
impl From<TextDecodingError> for ChunkParseError
Source§fn from(input: TextDecodingError) -> Self
fn from(input: TextDecodingError) -> Self
Converts to this type from the input type.
Source§impl From<TextDecodingError> for AtomParseError
impl From<TextDecodingError> for AtomParseError
Source§fn from(input: TextDecodingError) -> Self
fn from(input: TextDecodingError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for TextDecodingError
impl !UnwindSafe for TextDecodingError
impl Freeze for TextDecodingError
impl Send for TextDecodingError
impl Sync for TextDecodingError
impl Unpin for TextDecodingError
impl UnsafeUnpin for TextDecodingError
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