Enum elf_riscv32::Error
source · [−]pub enum Error {
Show 19 variants
IntegerOverflow,
IndexOutOfRange,
Unaligned,
UnexpectedEoF,
InvalidMagic,
InvalidFormat,
InvalidVersion,
UnsupportedFileType(u16),
UnsupportedMachine(u16),
UnsupportedProgramType(u32),
UnsupportedProgramFlags(ProgramFlags),
UnsupportedSectionType(u32),
UnsupportedSectionFlags(SectionFlags),
WrongProgramType {
expected: ProgramType,
actual: ProgramType,
},
WrongProgramFlags {
expected: ProgramFlags,
actual: ProgramFlags,
},
WrongSectionType {
expected: SectionType,
actual: SectionType,
},
WrongSectionFlags {
expected: SectionFlags,
actual: SectionFlags,
},
UnterminatedString,
NotUtf8(Utf8Error),
}
Variants
IntegerOverflow
IndexOutOfRange
Unaligned
UnexpectedEoF
InvalidMagic
InvalidFormat
InvalidVersion
UnsupportedFileType(u16)
UnsupportedMachine(u16)
UnsupportedProgramType(u32)
UnsupportedProgramFlags(ProgramFlags)
UnsupportedSectionType(u32)
UnsupportedSectionFlags(SectionFlags)
WrongProgramType
WrongProgramFlags
WrongSectionType
WrongSectionFlags
UnterminatedString
NotUtf8(Utf8Error)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more