pub enum ExpressionError {
Show 55 variants
    NotInScope,
    InvalidBaseType(Handle<Expression>),
    InvalidIndexType(Handle<Expression>),
    NegativeIndex(Handle<Expression>),
    IndexOutOfBounds(Handle<Expression>, u32),
    FunctionArgumentDoesntExist(u32),
    InvalidPointerType(Handle<Expression>),
    InvalidArrayType(Handle<Expression>),
    InvalidRayQueryType(Handle<Expression>),
    InvalidSplatType(Handle<Expression>),
    InvalidVectorType(Handle<Expression>),
    InvalidSwizzleComponent(SwizzleComponent, VectorSize),
    Compose(ComposeError),
    IndexableLength(IndexableLengthError),
    InvalidUnaryOperandType(UnaryOperator, Handle<Expression>),
    InvalidBinaryOperandTypes {
        op: BinaryOperator,
        lhs_expr: Handle<Expression>,
        lhs_type: TypeInner,
        rhs_expr: Handle<Expression>,
        rhs_type: TypeInner,
    },
    SelectValuesTypeMismatch {
        accept: TypeInner,
        reject: TypeInner,
    },
    SelectConditionNotABool {
        actual: TypeInner,
    },
    InvalidBooleanVector(Handle<Expression>),
    InvalidFloatArgument(Handle<Expression>),
    Type(ResolveError),
    ExpectedGlobalVariable,
    ExpectedGlobalOrArgument,
    ExpectedBindingArrayType(Handle<Type>),
    ExpectedImageType(Handle<Type>),
    ExpectedSamplerType(Handle<Type>),
    InvalidImageClass(ImageClass),
    InvalidImageFormat(StorageFormat),
    InvalidImageStorageAccess(StorageAccess),
    InvalidDerivative,
    InvalidImageArrayIndex,
    InvalidImageOtherIndex,
    InvalidImageArrayIndexType(Handle<Expression>),
    InvalidImageOtherIndexType(Handle<Expression>),
    InvalidImageCoordinateType(ImageDimension, Handle<Expression>),
    ComparisonSamplingMismatch {
        image: ImageClass,
        sampler: bool,
        has_ref: bool,
    },
    InvalidSampleOffsetExprType,
    InvalidSampleOffset(ImageDimension, Handle<Expression>),
    InvalidDepthReference(Handle<Expression>),
    InvalidDepthSampleLevel,
    InvalidGatherLevel,
    InvalidGatherComponent(SwizzleComponent),
    InvalidGatherDimension(ImageDimension),
    InvalidSampleLevelExactType(Handle<Expression>),
    InvalidSampleLevelBiasType(Handle<Expression>),
    InvalidSampleLevelBiasDimension(ImageDimension),
    InvalidSampleLevelGradientType(ImageDimension, Handle<Expression>),
    InvalidSampleClampCoordinateToEdge(String),
    InvalidCastArgument,
    WrongArgumentCount(MathFunction),
    InvalidArgumentType(MathFunction, u32, Handle<Expression>),
    InvalidWorkGroupUniformLoadResultType(Handle<Type>),
    MissingCapabilities(Capabilities),
    Literal(LiteralError),
    UnsupportedWidth(MathFunction, ScalarKind, Bytes),
}Variants§
NotInScope
InvalidBaseType(Handle<Expression>)
InvalidIndexType(Handle<Expression>)
NegativeIndex(Handle<Expression>)
IndexOutOfBounds(Handle<Expression>, u32)
FunctionArgumentDoesntExist(u32)
InvalidPointerType(Handle<Expression>)
InvalidArrayType(Handle<Expression>)
InvalidRayQueryType(Handle<Expression>)
InvalidSplatType(Handle<Expression>)
InvalidVectorType(Handle<Expression>)
InvalidSwizzleComponent(SwizzleComponent, VectorSize)
Compose(ComposeError)
IndexableLength(IndexableLengthError)
InvalidUnaryOperandType(UnaryOperator, Handle<Expression>)
InvalidBinaryOperandTypes
SelectValuesTypeMismatch
SelectConditionNotABool
InvalidBooleanVector(Handle<Expression>)
InvalidFloatArgument(Handle<Expression>)
Type(ResolveError)
ExpectedGlobalVariable
ExpectedGlobalOrArgument
ExpectedBindingArrayType(Handle<Type>)
ExpectedImageType(Handle<Type>)
ExpectedSamplerType(Handle<Type>)
InvalidImageClass(ImageClass)
InvalidImageFormat(StorageFormat)
InvalidImageStorageAccess(StorageAccess)
InvalidDerivative
InvalidImageArrayIndex
InvalidImageOtherIndex
InvalidImageArrayIndexType(Handle<Expression>)
InvalidImageOtherIndexType(Handle<Expression>)
InvalidImageCoordinateType(ImageDimension, Handle<Expression>)
ComparisonSamplingMismatch
InvalidSampleOffsetExprType
InvalidSampleOffset(ImageDimension, Handle<Expression>)
InvalidDepthReference(Handle<Expression>)
InvalidDepthSampleLevel
InvalidGatherLevel
InvalidGatherComponent(SwizzleComponent)
InvalidGatherDimension(ImageDimension)
InvalidSampleLevelExactType(Handle<Expression>)
InvalidSampleLevelBiasType(Handle<Expression>)
InvalidSampleLevelBiasDimension(ImageDimension)
InvalidSampleLevelGradientType(ImageDimension, Handle<Expression>)
InvalidSampleClampCoordinateToEdge(String)
InvalidCastArgument
WrongArgumentCount(MathFunction)
InvalidArgumentType(MathFunction, u32, Handle<Expression>)
InvalidWorkGroupUniformLoadResultType(Handle<Type>)
MissingCapabilities(Capabilities)
Literal(LiteralError)
UnsupportedWidth(MathFunction, ScalarKind, Bytes)
Trait Implementations§
Source§impl Clone for ExpressionError
 
impl Clone for ExpressionError
Source§fn clone(&self) -> ExpressionError
 
fn clone(&self) -> ExpressionError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl Debug for ExpressionError
 
impl Debug for ExpressionError
Source§impl Display for ExpressionError
 
impl Display for ExpressionError
Source§impl Error for ExpressionError
 
impl Error for ExpressionError
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()
Source§impl From<ComposeError> for ExpressionError
 
impl From<ComposeError> for ExpressionError
Source§fn from(source: ComposeError) -> Self
 
fn from(source: ComposeError) -> Self
Converts to this type from the input type.
Source§impl From<IndexableLengthError> for ExpressionError
 
impl From<IndexableLengthError> for ExpressionError
Source§fn from(source: IndexableLengthError) -> Self
 
fn from(source: IndexableLengthError) -> Self
Converts to this type from the input type.
Source§impl From<LiteralError> for ExpressionError
 
impl From<LiteralError> for ExpressionError
Source§fn from(source: LiteralError) -> Self
 
fn from(source: LiteralError) -> Self
Converts to this type from the input type.
Source§impl From<ResolveError> for ExpressionError
 
impl From<ResolveError> for ExpressionError
Source§fn from(source: ResolveError) -> Self
 
fn from(source: ResolveError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ExpressionError
impl RefUnwindSafe for ExpressionError
impl Send for ExpressionError
impl Sync for ExpressionError
impl Unpin for ExpressionError
impl UnwindSafe for ExpressionError
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