Enum naga::valid::ExpressionError [−][src]
pub enum ExpressionError {}Show variants
DoesntExist, NotInScope, ForwardDependency(Handle<Expression>), InvalidBaseType(Handle<Expression>), InvalidIndexType(Handle<Expression>), IndexOutOfBounds(Handle<Expression>, u32), FunctionArgumentDoesntExist(u32), ConstantDoesntExist(Handle<Constant>), GlobalVarDoesntExist(Handle<GlobalVariable>), LocalVarDoesntExist(Handle<LocalVariable>), InvalidPointerType(Handle<Expression>), InvalidArrayType(Handle<Expression>), InvalidSplatType(Handle<Expression>), InvalidVectorType(Handle<Expression>), InvalidSwizzleComponent(SwizzleComponent, VectorSize), Compose(ComposeError), InvalidUnaryOperandType(UnaryOperator, Handle<Expression>), InvalidBinaryOperandTypes(BinaryOperator, Handle<Expression>, Handle<Expression>), InvalidSelectTypes, InvalidBooleanVector(Handle<Expression>), InvalidFloatArgument(Handle<Expression>), Type(ResolveError), ExpectedGlobalVariable, CallToUndeclaredFunction(Handle<Function>), ExpectedImageType(Handle<Type>), ExpectedSamplerType(Handle<Type>), InvalidImageClass(ImageClass), InvalidDerivative, InvalidImageArrayIndex, InvalidImageOtherIndex, InvalidImageArrayIndexType(Handle<Expression>), InvalidImageOtherIndexType(Handle<Expression>), InvalidImageCoordinateType(ImageDimension, Handle<Expression>), ComparisonSamplingMismatch { image: ImageClass, sampler: bool, has_ref: bool, }, InvalidSampleOffset(ImageDimension, Handle<Constant>), InvalidDepthReference(Handle<Expression>), InvalidSampleLevel(ImageDimension), InvalidSampleLevelExactType(Handle<Expression>), InvalidSampleLevelBiasType(Handle<Expression>), InvalidSampleLevelGradientType(ImageDimension, Handle<Expression>), InvalidCastArgument, WrongArgumentCount(MathFunction), InvalidArgumentType(MathFunction, u32, Handle<Expression>),
Variants
ForwardDependency(Handle<Expression>)
InvalidBaseType(Handle<Expression>)
InvalidIndexType(Handle<Expression>)
IndexOutOfBounds(Handle<Expression>, u32)
FunctionArgumentDoesntExist(u32)
GlobalVarDoesntExist(Handle<GlobalVariable>)
LocalVarDoesntExist(Handle<LocalVariable>)
InvalidPointerType(Handle<Expression>)
InvalidArrayType(Handle<Expression>)
InvalidSplatType(Handle<Expression>)
InvalidVectorType(Handle<Expression>)
InvalidSwizzleComponent(SwizzleComponent, VectorSize)
Compose(ComposeError)
InvalidUnaryOperandType(UnaryOperator, Handle<Expression>)
InvalidBinaryOperandTypes(BinaryOperator, Handle<Expression>, Handle<Expression>)
InvalidBooleanVector(Handle<Expression>)
InvalidFloatArgument(Handle<Expression>)
Type(ResolveError)
InvalidImageClass(ImageClass)
InvalidImageArrayIndexType(Handle<Expression>)
InvalidImageOtherIndexType(Handle<Expression>)
InvalidImageCoordinateType(ImageDimension, Handle<Expression>)
Show fields
Fields of ComparisonSamplingMismatch
InvalidSampleOffset(ImageDimension, Handle<Constant>)
InvalidDepthReference(Handle<Expression>)
InvalidSampleLevel(ImageDimension)
InvalidSampleLevelExactType(Handle<Expression>)
InvalidSampleLevelBiasType(Handle<Expression>)
InvalidSampleLevelGradientType(ImageDimension, Handle<Expression>)
WrongArgumentCount(MathFunction)
InvalidArgumentType(MathFunction, u32, Handle<Expression>)
Trait Implementations
impl Clone for ExpressionError
[src]
impl Clone for ExpressionError
[src]fn clone(&self) -> ExpressionError
[src]
fn clone(&self) -> ExpressionError
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for ExpressionError
[src]
impl Debug for ExpressionError
[src]impl Display for ExpressionError
[src]
impl Display for ExpressionError
[src]impl Error for ExpressionError
[src]
impl Error for ExpressionError
[src]fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]👎 Deprecated since 1.42.0:
use the Display impl or to_string()
impl From<ComposeError> for ExpressionError
[src]
impl From<ComposeError> for ExpressionError
[src]fn from(source: ComposeError) -> Self
[src]
fn from(source: ComposeError) -> Self
[src]Performs the conversion.
impl From<ResolveError> for ExpressionError
[src]
impl From<ResolveError> for ExpressionError
[src]fn from(source: ResolveError) -> Self
[src]
fn from(source: ResolveError) -> Self
[src]Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for ExpressionError
impl Send for ExpressionError
impl Sync for ExpressionError
impl Unpin for ExpressionError
impl UnwindSafe for ExpressionError
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more