Enum llvm_mapper::block::BlockMapError [−][src]
#[non_exhaustive]
pub enum BlockMapError {
BadRecord(RecordMapError),
BadContext(MapCtxError),
BadBlockMap(String),
BlockRecordMismatch(u64, BlockId),
BlockBlockMismatch(BlockId, BlockId),
BadTypeTable(TypeTableError),
BadAttributes(AttributeError),
Unsupported(String),
}
Expand description
Potential errors when mapping a single bitstream block.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
BadRecord(RecordMapError)
Parsing a record failed, for some internal reason.
Tuple Fields of BadRecord
BadContext(MapCtxError)
Our mapping context was invalid for our operation.
Tuple Fields of BadContext
0: MapCtxError
BadBlockMap(String)
We couldn’t map a block, for any number of reasons.
Tuple Fields of BadBlockMap
0: String
We expected exactly one record with this code in this block.
We expected exactly one sub-block with this ID in this block.
BadTypeTable(TypeTableError)
We couldn’t map the type table.
Tuple Fields of BadTypeTable
BadAttributes(AttributeError)
We couldn’t map one of the attribute blocks.
Tuple Fields of BadAttributes
Unsupported(String)
We encountered an unsupported feature or layout.
Tuple Fields of Unsupported
0: String
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.