pub enum TypeError {
Show 14 variants
MissingCapability(Capabilities),
InvalidWidth(ScalarKind, Bytes),
InvalidAtomicWidth(ScalarKind, Bytes),
InvalidPointerBase(Handle<Type>),
InvalidPointerToUnsized {
base: Handle<Type>,
space: AddressSpace,
},
InvalidData(Handle<Type>),
InvalidArrayBaseType(Handle<Type>),
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,
}
Variants§
MissingCapability(Capabilities)
InvalidWidth(ScalarKind, Bytes)
InvalidAtomicWidth(ScalarKind, Bytes)
InvalidPointerBase(Handle<Type>)
InvalidPointerToUnsized
InvalidData(Handle<Type>)
InvalidArrayBaseType(Handle<Type>)
UnsupportedSpecializedArrayLength(Handle<Constant>)
InvalidArrayStride
InvalidDynamicArray(String, Handle<Type>)
BindingArrayBaseTypeNotStruct(Handle<Type>)
MemberOverlap
MemberOutOfBounds
EmptyStruct
Trait Implementations§
source§impl Error for TypeError
impl Error for TypeError
1.30.0 · 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