#[repr(i32)]pub enum WGPUCreatePipelineAsyncStatus {
Success = 1,
CallbackCancelled = 2,
ValidationError = 3,
InternalError = 4,
}Variants§
Implementations§
Source§impl WGPUCreatePipelineAsyncStatus
impl WGPUCreatePipelineAsyncStatus
Sourcepub const fn is_success(&self) -> bool
pub const fn is_success(&self) -> bool
Returns true if the enum is WGPUCreatePipelineAsyncStatus::Success otherwise false
Sourcepub const fn is_callback_cancelled(&self) -> bool
pub const fn is_callback_cancelled(&self) -> bool
Returns true if the enum is WGPUCreatePipelineAsyncStatus::CallbackCancelled otherwise false
Sourcepub const fn is_validation_error(&self) -> bool
pub const fn is_validation_error(&self) -> bool
Returns true if the enum is WGPUCreatePipelineAsyncStatus::ValidationError otherwise false
Sourcepub const fn is_internal_error(&self) -> bool
pub const fn is_internal_error(&self) -> bool
Returns true if the enum is WGPUCreatePipelineAsyncStatus::InternalError otherwise false
Trait Implementations§
Source§impl Clone for WGPUCreatePipelineAsyncStatus
impl Clone for WGPUCreatePipelineAsyncStatus
Source§fn clone(&self) -> WGPUCreatePipelineAsyncStatus
fn clone(&self) -> WGPUCreatePipelineAsyncStatus
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<'_derivative_strum> From<&'_derivative_strum WGPUCreatePipelineAsyncStatus> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum WGPUCreatePipelineAsyncStatus> for &'static str
Source§fn from(x: &'_derivative_strum WGPUCreatePipelineAsyncStatus) -> &'static str
fn from(x: &'_derivative_strum WGPUCreatePipelineAsyncStatus) -> &'static str
Converts to this type from the input type.
Source§impl From<WGPUCreatePipelineAsyncStatus> for &'static str
impl From<WGPUCreatePipelineAsyncStatus> for &'static str
Source§fn from(x: WGPUCreatePipelineAsyncStatus) -> &'static str
fn from(x: WGPUCreatePipelineAsyncStatus) -> &'static str
Converts to this type from the input type.
Source§impl Hash for WGPUCreatePipelineAsyncStatus
impl Hash for WGPUCreatePipelineAsyncStatus
Source§impl PartialEq for WGPUCreatePipelineAsyncStatus
impl PartialEq for WGPUCreatePipelineAsyncStatus
Source§fn eq(&self, other: &WGPUCreatePipelineAsyncStatus) -> bool
fn eq(&self, other: &WGPUCreatePipelineAsyncStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TryFrom<&str> for WGPUCreatePipelineAsyncStatus
impl TryFrom<&str> for WGPUCreatePipelineAsyncStatus
impl Copy for WGPUCreatePipelineAsyncStatus
impl Eq for WGPUCreatePipelineAsyncStatus
impl StructuralPartialEq for WGPUCreatePipelineAsyncStatus
Auto Trait Implementations§
impl Freeze for WGPUCreatePipelineAsyncStatus
impl RefUnwindSafe for WGPUCreatePipelineAsyncStatus
impl Send for WGPUCreatePipelineAsyncStatus
impl Sync for WGPUCreatePipelineAsyncStatus
impl Unpin for WGPUCreatePipelineAsyncStatus
impl UnwindSafe for WGPUCreatePipelineAsyncStatus
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