Enum rspirv::binary::ParseState[][src]

pub enum ParseState {
    Complete,
    ConsumerStopRequested,
    ConsumerError(Box<Error>),
    HeaderIncomplete(DecodeError),
    HeaderIncorrect,
    EndiannessUnsupported,
    WordCountZero(usizeusize),
    OpcodeUnknown(usizeusizeu16),
    OperandExpected(usizeusize),
    OperandExceeded(usizeusize),
    OperandError(DecodeError),
    TypeUnsupported(usizeusize),
    SpecConstantOpIntegerIncorrect(usizeusize),
}

Parser State.

Most of the error variants will retain the error location for both byte offset (starting from 0) and instruction number (starting from 1).

Variants

Parsing completed

Consumer requested to stop parse

Consumer errored out with the given error

Incomplete module header

Incorrect module header

Unsupported endianness

Zero instruction word count at (byte offset, inst number)

Unknown opcode at (byte offset, inst number, opcode)

Expected more operands (byte offset, inst number)

found redundant operands (byte offset, inst number)

Errored out when decoding operand with the given error

Unsupported type (byte offset, inst number)

Incorrect SpecConstantOp Integer (byte offset, inst number)

Trait Implementations

impl Debug for State
[src]

Formats the value using the given formatter. Read more

impl Error for State
[src]

This method is soft-deprecated. Read more

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

impl Display for State
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl !Send for ParseState

impl !Sync for ParseState