Enum llvm_bitstream::error::Error [−][src]
pub enum Error { Exhausted, Cursor(CursorError), BadContainer(String), BadBlockInfoCode(TryFromPrimitiveError<BlockInfoCode>), BadAbbrevOpEnc(TryFromPrimitiveError<AbbrevOpEnc>), BadValue(String), StreamParse(String), AbbrevParse(String), BadAbbrev(u64), Scope(String), }
Expand description
All possible errors that can occur while parsing a bitstream.
Variants
The underlying bitstream has no more data to parse.
The underlying BitCursor
returned an error
that we couldn’t specialize.
Tuple Fields of Cursor
0: CursorError
We couldn’t parse the wrapper structure or other data that precedes the actual bitstream.
Tuple Fields of BadContainer
0: String
A record in the BLOCKINFO
block has a code that we don’t know.
BLOCKINFO
must be fully interpreted in order to correctly parse the remainder of
the bitstream, so this is a hard error.
Tuple Fields of BadBlockInfoCode
An operand in a DEFINE_ABBREV
definition has a code that we don’t know.
This indicates either a malformed bitstream or a new operand format that
we don’t yet support, so it’s a hard error.
Tuple Fields of BadAbbrevOpEnc
A field value is either invalid or the incorrect type for a particular context.
Tuple Fields of BadValue
0: String
A generic error occurred while parsing the bitstream.
Tuple Fields of StreamParse
0: String
An error occurred while interpreting a DEFINE_ABBREV
record.
Tuple Fields of AbbrevParse
0: String
An error occurred while mapping an abbreviated record back to its abbreviation definition.
Tuple Fields of BadAbbrev
0: u64
An error occurred during block scope entrance or exit.
Tuple Fields of Scope
0: String
Trait Implementations
Performs the conversion.
Performs the conversion.