Enum rspirv::binary::ParseState [−][src]
pub enum ParseState { Complete, ConsumerStopRequested, ConsumerError(Box<Error>), HeaderIncomplete(DecodeError), HeaderIncorrect, EndiannessUnsupported, WordCountZero(usize, usize), OpcodeUnknown(usize, usize, u16), OperandExpected(usize, usize), OperandExceeded(usize, usize), OperandError(DecodeError), TypeUnsupported(usize, usize), SpecConstantOpIntegerIncorrect(usize, usize), }
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
Complete
Parsing completed
ConsumerStopRequested
Consumer requested to stop parse
ConsumerError(Box<Error>)
Consumer errored out with the given error
HeaderIncomplete(DecodeError)
Incomplete module header
HeaderIncorrect
Incorrect module header
EndiannessUnsupported
Unsupported endianness
WordCountZero(usize, usize)
Zero instruction word count at (byte offset, inst number)
OpcodeUnknown(usize, usize, u16)
Unknown opcode at (byte offset, inst number, opcode)
OperandExpected(usize, usize)
Expected more operands (byte offset, inst number)
OperandExceeded(usize, usize)
found redundant operands (byte offset, inst number)
OperandError(DecodeError)
Errored out when decoding operand with the given error
TypeUnsupported(usize, usize)
Unsupported type (byte offset, inst number)
SpecConstantOpIntegerIncorrect(usize, usize)
Incorrect SpecConstantOp Integer (byte offset, inst number)
Trait Implementations
impl Debug for State
[src]
impl Debug for State
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Error for State
[src]
impl Error for State
fn description(&self) -> &str
[src]
fn description(&self) -> &str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
impl Display for State
[src]
impl Display for State
Auto Trait Implementations
impl !Send for ParseState
impl !Send for ParseState
impl !Sync for ParseState
impl !Sync for ParseState