pub enum TypeError {
Show 15 variants
MissingCapability(Capabilities),
InvalidAtomicWidth(ScalarKind, u8),
InvalidPointerBase(Handle<Type>),
InvalidPointerToUnsized {
base: Handle<Type>,
space: AddressSpace,
},
InvalidData(Handle<Type>),
InvalidArrayBaseType(Handle<Type>),
MatrixElementNotFloat,
UnsupportedSpecializedArrayLength(Handle<Constant>),
InvalidArrayStride {
stride: u32,
expected: u32,
},
InvalidDynamicArray(String, Handle<Type>),
BindingArrayBaseTypeNotStruct(Handle<Type>),
MemberOverlap {
index: u32,
offset: u32,
},
MemberOutOfBounds {
index: u32,
offset: u32,
size: u32,
span: u32,
},
EmptyStruct,
WidthError(WidthError),
}
Variants§
MissingCapability(Capabilities)
InvalidAtomicWidth(ScalarKind, u8)
InvalidPointerBase(Handle<Type>)
InvalidPointerToUnsized
InvalidData(Handle<Type>)
InvalidArrayBaseType(Handle<Type>)
MatrixElementNotFloat
UnsupportedSpecializedArrayLength(Handle<Constant>)
InvalidArrayStride
InvalidDynamicArray(String, Handle<Type>)
BindingArrayBaseTypeNotStruct(Handle<Type>)
MemberOverlap
MemberOutOfBounds
EmptyStruct
WidthError(WidthError)
Trait Implementations§
source§impl Error for TypeError
impl Error for TypeError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 TypeError
impl Send for TypeError
impl Sync for TypeError
impl Unpin for TypeError
impl UnwindSafe for TypeError
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