pub enum EvalError {
Show 85 variants
Todo(String),
NotScalar(Type),
NotConstructible(Type),
Type(Type, Type),
SampledType(Type),
NotType(String),
UnknownType(String),
UnknownStruct(String),
NotAccessible(String, ShaderStage),
UnexpectedTemplate(String),
MissingTemplate(&'static str),
View(Type, MemView),
RefType(Type, Type),
WriteRefType(Type, Type),
NotWrite,
NotRead,
NotReadWrite,
PtrHandle,
PtrVecComp,
Conversion(Type, Type),
ConvOverflow(LiteralInstance, Type),
Component(Type, String),
Index(Type),
NotIndexable(Type),
Swizzle(String),
OutOfBounds(usize, Type, usize),
Unary(UnaryOperator, Type),
Binary(BinaryOperator, Type, Type),
CompwiseBinary(Type, Type),
NegOverflow,
AddOverflow,
SubOverflow,
MulOverflow,
DivByZero,
RemZeroDiv,
ShlOverflow(u32, LiteralInstance),
ShrOverflow(u32, LiteralInstance),
UnknownFunction(String),
NotCallable(String),
Signature(CallSignature),
Builtin(&'static str),
TemplateArgs(&'static str),
ParamCount(String, usize, usize),
ParamType(Type, Type),
ReturnType(Type, String, Type),
NoReturn(String, Type),
UnexpectedReturn(String, Type),
NotConst(String),
Void(String),
MustUse(String),
NotEntrypoint(String),
InvalidEntrypointParam(String),
MissingBuiltinInput(BuiltinValue, String),
OutputBuiltin(BuiltinValue),
InputBuiltin(BuiltinValue),
MissingUserInput(String, u32),
UnknownDecl(String),
OverrideInConst,
OverrideInFn,
LetInMod,
UninitConst(String),
UninitLet(String),
UninitOverride(String),
ForbiddenInitializer(AddressSpace),
DuplicateDecl(String),
UntypedDecl,
ForbiddenDecl(DeclarationKind, ScopeKind),
MissingResource(u32, u32),
AddressSpace(AddressSpace, AddressSpace),
AccessMode(AccessMode, AccessMode),
MissingBindAttr,
MissingWorkgroupSize,
NegativeAttr(i64),
InvalidBlendSrc(u32),
NotRef(Instance),
AssignType(Type, Type),
IncrType(Type),
IncrOverflow,
DecrType(Type),
DecrOverflow,
FlowInContinuing(Flow),
DiscardInConst,
ConstAssertFailure(ExpressionNode),
FlowInFunction(Flow),
FlowInModule(Flow),
}Available on crate feature
eval only.Expand description
Evaluation and Execution errors.
Variants§
Todo(String)
NotScalar(Type)
NotConstructible(Type)
Type(Type, Type)
SampledType(Type)
NotType(String)
UnknownType(String)
UnknownStruct(String)
NotAccessible(String, ShaderStage)
UnexpectedTemplate(String)
MissingTemplate(&'static str)
View(Type, MemView)
RefType(Type, Type)
WriteRefType(Type, Type)
NotWrite
NotRead
NotReadWrite
PtrHandle
PtrVecComp
Conversion(Type, Type)
ConvOverflow(LiteralInstance, Type)
Component(Type, String)
Index(Type)
NotIndexable(Type)
Swizzle(String)
OutOfBounds(usize, Type, usize)
Unary(UnaryOperator, Type)
Binary(BinaryOperator, Type, Type)
CompwiseBinary(Type, Type)
NegOverflow
AddOverflow
SubOverflow
MulOverflow
DivByZero
RemZeroDiv
ShlOverflow(u32, LiteralInstance)
ShrOverflow(u32, LiteralInstance)
UnknownFunction(String)
NotCallable(String)
Signature(CallSignature)
Builtin(&'static str)
TemplateArgs(&'static str)
ParamCount(String, usize, usize)
ParamType(Type, Type)
ReturnType(Type, String, Type)
NoReturn(String, Type)
UnexpectedReturn(String, Type)
NotConst(String)
Void(String)
MustUse(String)
NotEntrypoint(String)
InvalidEntrypointParam(String)
MissingBuiltinInput(BuiltinValue, String)
OutputBuiltin(BuiltinValue)
InputBuiltin(BuiltinValue)
MissingUserInput(String, u32)
UnknownDecl(String)
OverrideInConst
OverrideInFn
LetInMod
UninitConst(String)
UninitLet(String)
UninitOverride(String)
ForbiddenInitializer(AddressSpace)
DuplicateDecl(String)
UntypedDecl
ForbiddenDecl(DeclarationKind, ScopeKind)
MissingResource(u32, u32)
AddressSpace(AddressSpace, AddressSpace)
AccessMode(AccessMode, AccessMode)
MissingBindAttr
MissingWorkgroupSize
NegativeAttr(i64)
InvalidBlendSrc(u32)
NotRef(Instance)
AssignType(Type, Type)
IncrType(Type)
IncrOverflow
DecrType(Type)
DecrOverflow
FlowInContinuing(Flow)
DiscardInConst
ConstAssertFailure(ExpressionNode)
FlowInFunction(Flow)
FlowInModule(Flow)
Trait Implementations§
Source§impl Error for EvalError
impl Error for EvalError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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 EvalError
impl !Send for EvalError
impl !Sync for EvalError
impl !UnwindSafe for EvalError
impl Freeze for EvalError
impl Unpin for EvalError
impl UnsafeUnpin for EvalError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more