pub enum StrtabError {
MissingBlob,
BadBlob(RecordBlobError),
BadRange,
BadString(Utf8Error),
Map(MapError),
}Expand description
Errors that can occur when accessing a string table.
Variants§
MissingBlob
The string table is missing its blob.
BadBlob(RecordBlobError)
The blob containing the string table is invalid.
BadRange
The requested range is invalid.
BadString(Utf8Error)
The requested string is not UTF-8.
Map(MapError)
A generic mapping error occured.
Trait Implementations§
Source§impl Debug for StrtabError
impl Debug for StrtabError
Source§impl Display for StrtabError
impl Display for StrtabError
Source§impl Error for StrtabError
impl Error for StrtabError
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<MapError> for StrtabError
impl From<MapError> for StrtabError
Source§impl From<RecordBlobError> for StrtabError
impl From<RecordBlobError> for StrtabError
Source§fn from(source: RecordBlobError) -> Self
fn from(source: RecordBlobError) -> Self
Converts to this type from the input type.
Source§impl From<StrtabError> for AliasError
impl From<StrtabError> for AliasError
Source§fn from(source: StrtabError) -> Self
fn from(source: StrtabError) -> Self
Converts to this type from the input type.
Source§impl From<StrtabError> for BlockMapError
impl From<StrtabError> for BlockMapError
Source§fn from(source: StrtabError) -> Self
fn from(source: StrtabError) -> Self
Converts to this type from the input type.
Source§impl From<StrtabError> for ComdatError
impl From<StrtabError> for ComdatError
Source§fn from(source: StrtabError) -> Self
fn from(source: StrtabError) -> Self
Converts to this type from the input type.
Source§impl From<StrtabError> for FunctionError
impl From<StrtabError> for FunctionError
Source§fn from(source: StrtabError) -> Self
fn from(source: StrtabError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StrtabError
impl RefUnwindSafe for StrtabError
impl Send for StrtabError
impl Sync for StrtabError
impl Unpin for StrtabError
impl UnwindSafe for StrtabError
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