pub enum ReadStringError {
Leb128(Error),
Utf8(Utf8Error),
OutOfBounds,
}
Available on crate feature
strings
only.Expand description
An error when trying to read a string from a serialized StringTable
.
Variants§
Leb128(Error)
The string’s length prefix is not valid LEB128.
Utf8(Utf8Error)
The string data is not valid UTF-8.
OutOfBounds
The string’s offset or length is outside the bounds of the data blob.
Trait Implementations§
Source§impl Debug for ReadStringError
impl Debug for ReadStringError
Source§impl Display for ReadStringError
impl Display for ReadStringError
Source§impl Error for ReadStringError
impl Error for ReadStringError
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<Error> for ReadStringError
impl From<Error> for ReadStringError
Auto Trait Implementations§
impl Freeze for ReadStringError
impl !RefUnwindSafe for ReadStringError
impl Send for ReadStringError
impl Sync for ReadStringError
impl Unpin for ReadStringError
impl !UnwindSafe for ReadStringError
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