Enum spirv_tools_sys::shared::SpirvResult
source · #[repr(i32)]pub enum SpirvResult {
Show 22 variants
Success,
Unsupported,
EndOfStream,
Warning,
FailedMatch,
RequestedTermination,
InternalError,
OutOfMemory,
InvalidPointer,
InvalidBinary,
InvalidText,
InvalidTable,
InvalidValue,
InvalidDiagnostic,
InvalidLookup,
InvalidId,
InvalidCfg,
InvalidLayout,
InvalidCapability,
InvalidData,
MissingExtension,
WrongVersion,
}
Variants§
Success
Unsupported
EndOfStream
Warning
FailedMatch
RequestedTermination
Success, but signals early termination.
InternalError
OutOfMemory
InvalidPointer
InvalidBinary
InvalidText
InvalidTable
InvalidValue
InvalidDiagnostic
InvalidLookup
InvalidId
InvalidCfg
InvalidLayout
InvalidCapability
InvalidData
Indicates data rules validation failure.
MissingExtension
WrongVersion
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<SpirvResult> for SpirvResult
impl PartialEq<SpirvResult> 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 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