pub enum TypeError {
Show 17 variants
MissingCapability(Capabilities),
InvalidAtomicWidth(ScalarKind, Bytes),
InvalidPointerBase(Handle<Type>),
InvalidPointerToUnsized {
base: Handle<Type>,
space: AddressSpace,
},
InvalidData(Handle<Type>),
InvalidArrayBaseType(Handle<Type>),
MatrixElementNotFloat,
UnsupportedSpecializedArrayLength(Handle<Constant>),
UnsupportedImageType {
dim: ImageDimension,
arrayed: bool,
class: ImageClass,
},
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),
UnresolvedOverride(Handle<Type>),
}
Variants§
MissingCapability(Capabilities)
InvalidAtomicWidth(ScalarKind, Bytes)
InvalidPointerBase(Handle<Type>)
InvalidPointerToUnsized
InvalidData(Handle<Type>)
InvalidArrayBaseType(Handle<Type>)
MatrixElementNotFloat
UnsupportedSpecializedArrayLength(Handle<Constant>)
UnsupportedImageType
InvalidArrayStride
InvalidDynamicArray(String, Handle<Type>)
BindingArrayBaseTypeNotStruct(Handle<Type>)
MemberOverlap
MemberOutOfBounds
EmptyStruct
WidthError(WidthError)
UnresolvedOverride(Handle<Type>)
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)>
Returns 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()
source§impl From<WidthError> for TypeError
impl From<WidthError> for TypeError
source§fn from(source: WidthError) -> Self
fn from(source: WidthError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TypeError
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)