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

pub enum ParseState {
    Complete,
    ConsumerStopRequested,
    ConsumerError(Box<dyn 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

Complete

Parsing completed

ConsumerStopRequested

Consumer requested to stop parse

ConsumerError(Box<dyn Error>)

Consumer errored out with the given error

HeaderIncomplete(DecodeError)

Incomplete module header

HeaderIncorrect

Incorrect module header

EndiannessUnsupported

Unsupported endianness

WordCountZero(usizeusize)

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

OpcodeUnknown(usizeusizeu16)

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

OperandExpected(usizeusize)

Expected more operands (byte offset, inst number)

OperandExceeded(usizeusize)

found redundant operands (byte offset, inst number)

OperandError(DecodeError)

Errored out when decoding operand with the given error

TypeUnsupported(usizeusize)

Unsupported type (byte offset, inst number)

SpecConstantOpIntegerIncorrect(usizeusize)

Incorrect SpecConstantOp Integer (byte offset, inst number)

Trait Implementations

impl Debug for State[src]

impl Display for State[src]

impl Error for State[src]

impl From<Error> for State[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.