Enum rspirv::binary::ParseState
source · pub enum ParseState {
Show 13 variants
Complete,
ConsumerStopRequested,
ConsumerError(Box<dyn Error + Send>),
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),
}
Expand description
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<dyn Error + Send>)
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§
source§impl Error for State
impl Error for State
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for State
impl Send for State
impl !Sync for State
impl Unpin for State
impl !UnwindSafe for State
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more