Enum spirv_tools::error::SpirvResult
source · #[repr(i32)]pub enum SpirvResult {
Show 22 variants
Success = 0,
Unsupported = 1,
EndOfStream = 2,
Warning = 3,
FailedMatch = 4,
RequestedTermination = 5,
InternalError = -1,
OutOfMemory = -2,
InvalidPointer = -3,
InvalidBinary = -4,
InvalidText = -5,
InvalidTable = -6,
InvalidValue = -7,
InvalidDiagnostic = -8,
InvalidLookup = -9,
InvalidId = -10,
InvalidCfg = -11,
InvalidLayout = -12,
InvalidCapability = -13,
InvalidData = -14,
MissingExtension = -15,
WrongVersion = -16,
}
Variants§
Success = 0
Unsupported = 1
EndOfStream = 2
Warning = 3
FailedMatch = 4
RequestedTermination = 5
Success, but signals early termination.
InternalError = -1
OutOfMemory = -2
InvalidPointer = -3
InvalidBinary = -4
InvalidText = -5
InvalidTable = -6
InvalidValue = -7
InvalidDiagnostic = -8
InvalidLookup = -9
InvalidId = -10
InvalidCfg = -11
InvalidLayout = -12
InvalidCapability = -13
InvalidData = -14
Indicates data rules validation failure.
MissingExtension = -15
WrongVersion = -16
Indicates wrong SPIR-V version
Trait Implementations§
source§impl Clone for SpirvResult
impl Clone for SpirvResult
source§fn clone(&self) -> SpirvResult
fn clone(&self) -> SpirvResult
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SpirvResult
impl Debug for SpirvResult
source§impl Display for SpirvResult
impl Display for SpirvResult
source§impl Error for SpirvResult
impl Error for SpirvResult
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 PartialEq for SpirvResult
impl PartialEq for SpirvResult
source§fn eq(&self, other: &SpirvResult) -> bool
fn eq(&self, other: &SpirvResult) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SpirvResult
impl StructuralPartialEq for SpirvResult
Auto Trait Implementations§
impl Freeze for SpirvResult
impl RefUnwindSafe for SpirvResult
impl Send for SpirvResult
impl Sync for SpirvResult
impl Unpin for SpirvResult
impl UnwindSafe for SpirvResult
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