#[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)>
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 PartialEq for SpirvResult
impl PartialEq for SpirvResult
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