Enum llvm_bitstream::error::Error [−][src]
pub enum Error {
Exhausted,
Cursor(CursorError),
BadContainer(String),
BadBlockInfoCode(TryFromPrimitiveError<BlockInfoCode>),
BadAbbrevOpEnc(TryFromPrimitiveError<AbbrevOpEnc>),
StreamParse(String),
AbbrevParse(String),
BadAbbrev(u64),
BadScope(String),
}Expand description
All possible errors that can occur while parsing a bitstream.
Variants
The underlying bitstream has no more data to parse.
Cursor(CursorError)The underlying BitCursor returned an error
that we couldn’t specialize.
Tuple Fields of Cursor
0: CursorErrorBadContainer(String)We couldn’t parse the wrapper structure or other data that precedes the actual bitstream.
Tuple Fields of BadContainer
0: StringBadBlockInfoCode(TryFromPrimitiveError<BlockInfoCode>)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
BadAbbrevOpEnc(TryFromPrimitiveError<AbbrevOpEnc>)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
StreamParse(String)A generic error occurred while parsing the bitstream.
Tuple Fields of StreamParse
0: StringAbbrevParse(String)An error occurred while interpreting a DEFINE_ABBREV record.
Tuple Fields of AbbrevParse
0: StringBadAbbrev(u64)An error occurred while mapping an abbreviated record back to its abbreviation definition.
Tuple Fields of BadAbbrev
0: u64BadScope(String)An error occurred during block scope entrance or exit.
Tuple Fields of BadScope
0: StringTrait Implementations
Performs the conversion.
Performs the conversion.