Enum spirv_tools::error::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
sourceimpl Clone for SpirvResult
impl Clone for SpirvResult
sourcefn clone(&self) -> SpirvResult
fn clone(&self) -> SpirvResult
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SpirvResult
impl Debug for SpirvResult
sourceimpl Display for SpirvResult
impl Display for SpirvResult
sourceimpl Error for SpirvResult
impl Error for SpirvResult
1.30.0 · sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl PartialEq<SpirvResult> for SpirvResult
impl PartialEq<SpirvResult> for SpirvResult
sourcefn eq(&self, other: &SpirvResult) -> bool
fn eq(&self, other: &SpirvResult) -> bool
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more