Enum spirt::spv::read::InstParseError
source · enum InstParseError {
NotEnoughWords,
TooManyWords,
IdZero,
UnsupportedEnumerand(OperandKind, u32),
UnknownResultTypeId(Id),
MissingContextSensitiveLiteralType,
UnsupportedContextSensitiveLiteralType {
type_opcode: Opcode,
},
}
Variants§
NotEnoughWords
Ran out of words while parsing an instruction’s operands.
TooManyWords
Extra words were left over, after parsing an instruction’s operands.
IdZero
An illegal ID of 0
.
UnsupportedEnumerand(OperandKind, u32)
Unsupported enumerand value.
UnknownResultTypeId(Id)
An IdResultType
ID referring to an ID not already defined.
MissingContextSensitiveLiteralType
The type of a LiteralContextDependentNumber
could not be determined.
UnsupportedContextSensitiveLiteralType
The type of a LiteralContextDependentNumber
was not a supported type
(one of either OpTypeInt
or OpTypeFloat
).
Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for InstParseError
impl Send for InstParseError
impl Sync for InstParseError
impl Unpin for InstParseError
impl UnwindSafe for InstParseError
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