Enum llvm_mapper::error::Error[][src]

pub enum Error {
    Parse(BitstreamError),
    BadUnroll(String),
    BadRecordMap(String),
    BadBlockMap(String),
    BadField(String),
    BlockRecordMismatch(u64BlockId),
    BlockBlockMismatch(BlockIdBlockId),
    BadDataLayout(DataLayoutParseError),
    BadContext(MapCtxError),
    BadStrtab(StrtabError),
    Unsupported(String),
}
Expand description

All possible errors that can occur while mapping a bitstream.

Variants

We encountered an error while performing the underlying bitstream parse.

Tuple Fields of Parse

0: BitstreamError
BadUnroll(String)

We couldn’t unroll the stream because of a structural error.

Tuple Fields of BadUnroll

0: String
BadRecordMap(String)

We couldn’t map a record, for any number of reasons.

Tuple Fields of BadRecordMap

0: String
BadBlockMap(String)

We couldn’t map a block, for any number of reasons.

Tuple Fields of BadBlockMap

0: String
BadField(String)

We couldn’t interpret a record field, for any number of reasons.

Tuple Fields of BadField

0: String
BlockRecordMismatch(u64BlockId)

We expected exactly one record with this code in this block.

Tuple Fields of BlockRecordMismatch

0: u641: BlockId
BlockBlockMismatch(BlockIdBlockId)

We expected exactly one sub-block with this ID in this block.

Tuple Fields of BlockBlockMismatch

0: BlockId1: BlockId
BadDataLayout(DataLayoutParseError)

We couldn’t parse the datalayout specifier.

Tuple Fields of BadDataLayout

0: DataLayoutParseError
BadContext(MapCtxError)

Our mapping context isn’t valid for this operation.

Tuple Fields of BadContext

0: MapCtxError
BadStrtab(StrtabError)

Retrieving a string from a string table failed.

Tuple Fields of BadStrtab

0: StrtabError
Unsupported(String)

The bitstream contains features or is represented in a way we don’t support. Yet.

Tuple Fields of Unsupported

0: String

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

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

Performs the conversion.

Performs the conversion.

Converts the given value to a String. Read more

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.