Enum naga::valid::TypeError [−][src]
pub enum TypeError {
Show 13 variants
InvalidWidth(ScalarKind, Bytes),
InvalidAtomicWidth(ScalarKind, Bytes),
UnresolvedBase(Handle<Type>),
InvalidPointerBase(Handle<Type>),
InvalidData(Handle<Type>),
InvalidArrayBaseType(Handle<Type>),
InvalidArraySizeConstant(Handle<Constant>),
NonPositiveArrayLength(Handle<Constant>),
InsufficientArrayStride {
stride: u32,
base_size: u32,
},
InvalidDynamicArray(String, Handle<Type>),
MemberOverlap {
index: u32,
offset: u32,
},
MemberOutOfBounds {
index: u32,
offset: u32,
size: u32,
span: u32,
},
NestedTopLevel,
}
Variants
InvalidWidth(ScalarKind, Bytes)
Tuple Fields of InvalidWidth
0: ScalarKind
1: Bytes
InvalidAtomicWidth(ScalarKind, Bytes)
Tuple Fields of InvalidAtomicWidth
0: ScalarKind
1: Bytes
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TypeError
impl UnwindSafe for TypeError
Blanket Implementations
Mutably borrows from an owned value. Read more