pub enum Error {
Show 53 variants
InvalidHeader,
InvalidWordCount,
UnknownInstruction(u16),
UnknownCapability(Word),
UnsupportedInstruction(ModuleState, Op),
UnsupportedCapability(Capability),
UnsupportedExtension(String),
UnsupportedExtSet(String),
UnsupportedExtInstSet(Word),
UnsupportedExtInst(Word),
UnsupportedType(Handle<Type>),
UnsupportedExecutionModel(Word),
UnsupportedExecutionMode(Word),
UnsupportedStorageClass(Word),
UnsupportedImageDim(Word),
UnsupportedImageFormat(Word),
UnsupportedBuiltIn(Word),
UnsupportedControlFlow(Word),
UnsupportedBinaryOperator(Word),
UnknownBinaryOperator(Op),
UnknownRelationalFunction(Op),
InvalidParameter(Op),
InvalidOperandCount(Op, u16),
InvalidOperand,
InvalidId(Word),
InvalidDecoration(Word),
InvalidTypeWidth(Word),
InvalidSign(Word),
InvalidInnerType(Word),
InvalidVectorSize(Word),
InvalidAccessType(Word),
InvalidAccess(Expression),
InvalidAccessIndex(Word),
InvalidBinding(Word),
InvalidGlobalVar(Expression),
InvalidImageExpression(Expression),
InvalidImageBaseType(Handle<Type>),
InvalidImage(Handle<Type>),
InvalidAsType(Handle<Type>),
InvalidVectorType(Handle<Type>),
InconsistentComparisonSampling(Handle<GlobalVariable>),
WrongFunctionResultType(Word),
WrongFunctionArgumentType(Word),
MissingDecoration(Decoration),
BadString,
IncompleteData,
InvalidTerminator,
InvalidEdgeClassification,
ControlFlowGraphCycle(u32),
FunctionCallCycle(Word),
InvalidArraySize(Handle<Constant>),
InvalidBarrierScope(Word),
InvalidBarrierMemorySemantics(Word),
}
Tuple Fields of UnknownInstruction
Tuple Fields of UnknownCapability
Tuple Fields of UnsupportedInstruction
Tuple Fields of UnsupportedCapability
Tuple Fields of UnsupportedExtension
Tuple Fields of UnsupportedExtSet
Tuple Fields of UnsupportedExtInstSet
Tuple Fields of UnsupportedExtInst
Tuple Fields of UnsupportedType
Tuple Fields of UnsupportedExecutionModel
Tuple Fields of UnsupportedExecutionMode
Tuple Fields of UnsupportedStorageClass
Tuple Fields of UnsupportedImageDim
Tuple Fields of UnsupportedBuiltIn
Tuple Fields of UnsupportedControlFlow
Tuple Fields of UnsupportedBinaryOperator
Tuple Fields of UnknownBinaryOperator
Tuple Fields of UnknownRelationalFunction
Tuple Fields of InvalidParameter
InvalidOperandCount(Op, u16)
Tuple Fields of InvalidOperandCount
Tuple Fields of InvalidId
Tuple Fields of InvalidDecoration
Tuple Fields of InvalidTypeWidth
Tuple Fields of InvalidSign
Tuple Fields of InvalidInnerType
Tuple Fields of InvalidVectorSize
Tuple Fields of InvalidAccessType
Tuple Fields of InvalidAccess
Tuple Fields of InvalidAccessIndex
Tuple Fields of InvalidBinding
Tuple Fields of InvalidGlobalVar
Tuple Fields of InvalidImageExpression
Tuple Fields of InvalidImageBaseType
Tuple Fields of InvalidImage
Tuple Fields of InvalidAsType
Tuple Fields of InvalidVectorType
Tuple Fields of InconsistentComparisonSampling
Tuple Fields of WrongFunctionResultType
Tuple Fields of WrongFunctionArgumentType
Tuple Fields of MissingDecoration
Tuple Fields of ControlFlowGraphCycle
Tuple Fields of FunctionCallCycle
Tuple Fields of InvalidArraySize
Tuple Fields of InvalidBarrierScope
Tuple Fields of InvalidBarrierMemorySemantics
Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
The lower-level source of this error, if any. Read more
🔬 This is a nightly-only experimental API. (backtrace
)
Returns a stack backtrace, if available, of where this error occurred. Read more
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
👎 Deprecated since 1.33.0:
replaced by Error::source, which can support downcasting
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
Converts the given value to a String
. Read more
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.