Enum naga::front::wgsl::Error[][src]

pub enum Error<'a> {
Show 31 variants Unexpected((Token<'a>, Range<usize>)ExpectedToken<'a>), BadU32(Range<usize>, ParseIntError), BadI32(Range<usize>, ParseIntError), BadFloat(Range<usize>, ParseFloatError), BadU32Constant(Range<usize>), BadScalarWidth(Range<usize>, &'a str), BadAccessor(Range<usize>), BadTexture(Range<usize>), BadTypeCast { span: Range<usize>, from_type: String, to_type: String, }, BadTextureSampleType { span: Range<usize>, kind: ScalarKind, width: u8, }, InvalidResolve(ResolveError), InvalidForInitializer(Range<usize>), UnknownStorageClass(Range<usize>), UnknownAttribute(Range<usize>), UnknownBuiltin(Range<usize>), UnknownAccess(Range<usize>), UnknownShaderStage(Range<usize>), UnknownIdent(Range<usize>, &'a str), UnknownScalarType(Range<usize>), UnknownType(Range<usize>), UnknownStorageFormat(Range<usize>), UnknownConservativeDepth(Range<usize>), ZeroStride(Range<usize>), ZeroSizeOrAlign(Range<usize>), InconsistentBinding(Range<usize>), UnknownLocalFunction(Range<usize>), InitializationTypeMismatch(Range<usize>, Handle<Type>), MissingType(Range<usize>), InvalidAtomicPointer(Range<usize>), InvalidAtomicOperandType(Range<usize>), Other,
}

Variants

Unexpected((Token<'a>, Range<usize>)ExpectedToken<'a>)

Tuple Fields of Unexpected

0: (Token<'a>, Range<usize>)1: ExpectedToken<'a>

Tuple Fields of BadU32

0: Range<usize>1: ParseIntError

Tuple Fields of BadI32

0: Range<usize>1: ParseIntError

Tuple Fields of BadFloat

0: Range<usize>1: ParseFloatError
BadU32Constant(Range<usize>)

Tuple Fields of BadU32Constant

0: Range<usize>
BadScalarWidth(Range<usize>, &'a str)

Tuple Fields of BadScalarWidth

0: Range<usize>1: &'a str
BadAccessor(Range<usize>)

Tuple Fields of BadAccessor

0: Range<usize>
BadTexture(Range<usize>)

Tuple Fields of BadTexture

0: Range<usize>
BadTypeCast

Fields of BadTypeCast

span: Range<usize>from_type: Stringto_type: String
BadTextureSampleType

Fields of BadTextureSampleType

span: Range<usize>kind: ScalarKindwidth: u8
InvalidResolve(ResolveError)

Tuple Fields of InvalidResolve

0: ResolveError
InvalidForInitializer(Range<usize>)

Tuple Fields of InvalidForInitializer

0: Range<usize>
UnknownStorageClass(Range<usize>)

Tuple Fields of UnknownStorageClass

0: Range<usize>
UnknownAttribute(Range<usize>)

Tuple Fields of UnknownAttribute

0: Range<usize>
UnknownBuiltin(Range<usize>)

Tuple Fields of UnknownBuiltin

0: Range<usize>
UnknownAccess(Range<usize>)

Tuple Fields of UnknownAccess

0: Range<usize>
UnknownShaderStage(Range<usize>)

Tuple Fields of UnknownShaderStage

0: Range<usize>
UnknownIdent(Range<usize>, &'a str)

Tuple Fields of UnknownIdent

0: Range<usize>1: &'a str
UnknownScalarType(Range<usize>)

Tuple Fields of UnknownScalarType

0: Range<usize>
UnknownType(Range<usize>)

Tuple Fields of UnknownType

0: Range<usize>
UnknownStorageFormat(Range<usize>)

Tuple Fields of UnknownStorageFormat

0: Range<usize>
UnknownConservativeDepth(Range<usize>)

Tuple Fields of UnknownConservativeDepth

0: Range<usize>
ZeroStride(Range<usize>)

Tuple Fields of ZeroStride

0: Range<usize>
ZeroSizeOrAlign(Range<usize>)

Tuple Fields of ZeroSizeOrAlign

0: Range<usize>
InconsistentBinding(Range<usize>)

Tuple Fields of InconsistentBinding

0: Range<usize>
UnknownLocalFunction(Range<usize>)

Tuple Fields of UnknownLocalFunction

0: Range<usize>
InitializationTypeMismatch(Range<usize>, Handle<Type>)

Tuple Fields of InitializationTypeMismatch

0: Range<usize>1: Handle<Type>
MissingType(Range<usize>)

Tuple Fields of MissingType

0: Range<usize>
InvalidAtomicPointer(Range<usize>)

Tuple Fields of InvalidAtomicPointer

0: Range<usize>
InvalidAtomicOperandType(Range<usize>)

Tuple Fields of InvalidAtomicOperandType

0: Range<usize>
Other

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.