Enum rspirv::binary::DecodeError
source · pub enum DecodeError {
Show 38 variants
StreamExpected(usize),
LimitReached(usize),
ImageOperandsUnknown(usize, Word),
FPFastMathModeUnknown(usize, Word),
SelectionControlUnknown(usize, Word),
LoopControlUnknown(usize, Word),
FunctionControlUnknown(usize, Word),
MemorySemanticsUnknown(usize, Word),
MemoryAccessUnknown(usize, Word),
KernelProfilingInfoUnknown(usize, Word),
RayFlagsUnknown(usize, Word),
FragmentShadingRateUnknown(usize, Word),
SourceLanguageUnknown(usize, Word),
ExecutionModelUnknown(usize, Word),
AddressingModelUnknown(usize, Word),
MemoryModelUnknown(usize, Word),
ExecutionModeUnknown(usize, Word),
StorageClassUnknown(usize, Word),
DimUnknown(usize, Word),
SamplerAddressingModeUnknown(usize, Word),
SamplerFilterModeUnknown(usize, Word),
ImageFormatUnknown(usize, Word),
ImageChannelOrderUnknown(usize, Word),
ImageChannelDataTypeUnknown(usize, Word),
FPRoundingModeUnknown(usize, Word),
LinkageTypeUnknown(usize, Word),
AccessQualifierUnknown(usize, Word),
FunctionParameterAttributeUnknown(usize, Word),
DecorationUnknown(usize, Word),
BuiltInUnknown(usize, Word),
ScopeUnknown(usize, Word),
GroupOperationUnknown(usize, Word),
KernelEnqueueFlagsUnknown(usize, Word),
CapabilityUnknown(usize, Word),
RayQueryIntersectionUnknown(usize, Word),
RayQueryCommittedIntersectionTypeUnknown(usize, Word),
RayQueryCandidateIntersectionTypeUnknown(usize, Word),
DecodeStringFailed(usize, String),
}
Expand description
Decoder Error
Variants§
StreamExpected(usize)
LimitReached(usize)
ImageOperandsUnknown(usize, Word)
FPFastMathModeUnknown(usize, Word)
SelectionControlUnknown(usize, Word)
LoopControlUnknown(usize, Word)
FunctionControlUnknown(usize, Word)
MemorySemanticsUnknown(usize, Word)
MemoryAccessUnknown(usize, Word)
KernelProfilingInfoUnknown(usize, Word)
RayFlagsUnknown(usize, Word)
FragmentShadingRateUnknown(usize, Word)
SourceLanguageUnknown(usize, Word)
ExecutionModelUnknown(usize, Word)
AddressingModelUnknown(usize, Word)
MemoryModelUnknown(usize, Word)
ExecutionModeUnknown(usize, Word)
StorageClassUnknown(usize, Word)
DimUnknown(usize, Word)
SamplerAddressingModeUnknown(usize, Word)
SamplerFilterModeUnknown(usize, Word)
ImageFormatUnknown(usize, Word)
ImageChannelOrderUnknown(usize, Word)
ImageChannelDataTypeUnknown(usize, Word)
FPRoundingModeUnknown(usize, Word)
LinkageTypeUnknown(usize, Word)
AccessQualifierUnknown(usize, Word)
FunctionParameterAttributeUnknown(usize, Word)
DecorationUnknown(usize, Word)
BuiltInUnknown(usize, Word)
ScopeUnknown(usize, Word)
GroupOperationUnknown(usize, Word)
KernelEnqueueFlagsUnknown(usize, Word)
CapabilityUnknown(usize, Word)
RayQueryIntersectionUnknown(usize, Word)
RayQueryCommittedIntersectionTypeUnknown(usize, Word)
RayQueryCandidateIntersectionTypeUnknown(usize, Word)
DecodeStringFailed(usize, String)
Failed to decode a string.
For structured error handling, the second element could be
string::FromUtf8Error
, but the will prohibit the compiler
from generating PartialEq
for this enum.
Trait Implementations§
source§impl Error for Error
impl Error for Error
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()
source§impl From<Error> for State
impl From<Error> for State
source§fn from(err: DecodeError) -> Self
fn from(err: DecodeError) -> Self
Converts to this type from the input type.
source§impl PartialEq<Error> for Error
impl PartialEq<Error> for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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