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

Fields

expected: ProgramType
actual: ProgramType

WrongProgramFlags

Fields

expected: ProgramFlags
actual: ProgramFlags

WrongSectionType

Fields

expected: SectionType
actual: SectionType

WrongSectionFlags

Fields

expected: SectionFlags
actual: SectionFlags

UnterminatedString

NotUtf8(Utf8Error)

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.