pub enum SymbolError {
BadEntsize {
idx: usize,
got: u64,
expected: u64,
},
BadTableSize {
idx: usize,
size: u64,
entry: u64,
},
BadStrtabIndex {
idx: usize,
strtab_idx: usize,
},
StrtabOutOfBounds {
idx: usize,
sym: usize,
name: u64,
strtab_size: usize,
},
NameNotUtf8 {
idx: usize,
sym: usize,
offset: usize,
},
}Expand description
Errors specific to symbol-table parsing.
Variants§
Trait Implementations§
Source§impl Debug for SymbolError
impl Debug for SymbolError
Source§impl Display for SymbolError
impl Display for SymbolError
Source§impl Error for SymbolError
impl Error for SymbolError
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 From<SymbolError> for Error
impl From<SymbolError> for Error
Source§fn from(source: SymbolError) -> Self
fn from(source: SymbolError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SymbolError
impl RefUnwindSafe for SymbolError
impl Send for SymbolError
impl Sync for SymbolError
impl Unpin for SymbolError
impl UnsafeUnpin for SymbolError
impl UnwindSafe for SymbolError
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