#[repr(i32)]pub enum WGPUErrorType {
NoError = 1,
Validation = 2,
OutOfMemory = 3,
Internal = 4,
Unknown = 5,
}Variants§
Implementations§
Source§impl WGPUErrorType
impl WGPUErrorType
Sourcepub const fn is_no_error(&self) -> bool
pub const fn is_no_error(&self) -> bool
Returns true if the enum is WGPUErrorType::NoError otherwise false
Sourcepub const fn is_validation(&self) -> bool
pub const fn is_validation(&self) -> bool
Returns true if the enum is WGPUErrorType::Validation otherwise false
Sourcepub const fn is_out_of_memory(&self) -> bool
pub const fn is_out_of_memory(&self) -> bool
Returns true if the enum is WGPUErrorType::OutOfMemory otherwise false
Sourcepub const fn is_internal(&self) -> bool
pub const fn is_internal(&self) -> bool
Returns true if the enum is WGPUErrorType::Internal otherwise false
Sourcepub const fn is_unknown(&self) -> bool
pub const fn is_unknown(&self) -> bool
Returns true if the enum is WGPUErrorType::Unknown otherwise false
Source§impl WGPUErrorType
impl WGPUErrorType
Trait Implementations§
Source§impl Clone for WGPUErrorType
impl Clone for WGPUErrorType
Source§fn clone(&self) -> WGPUErrorType
fn clone(&self) -> WGPUErrorType
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 WGPUErrorType
impl Debug for WGPUErrorType
Source§impl Display for WGPUErrorType
impl Display for WGPUErrorType
Source§impl<'_derivative_strum> From<&'_derivative_strum WGPUErrorType> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum WGPUErrorType> for &'static str
Source§fn from(x: &'_derivative_strum WGPUErrorType) -> &'static str
fn from(x: &'_derivative_strum WGPUErrorType) -> &'static str
Converts to this type from the input type.
Source§impl From<WGPUErrorType> for &'static str
impl From<WGPUErrorType> for &'static str
Source§fn from(x: WGPUErrorType) -> &'static str
fn from(x: WGPUErrorType) -> &'static str
Converts to this type from the input type.
Source§impl FromStr for WGPUErrorType
impl FromStr for WGPUErrorType
Source§impl Hash for WGPUErrorType
impl Hash for WGPUErrorType
Source§impl IntoEnumIterator for WGPUErrorType
impl IntoEnumIterator for WGPUErrorType
type Iterator = WGPUErrorTypeIter
fn iter() -> WGPUErrorTypeIter ⓘ
Source§impl PartialEq for WGPUErrorType
impl PartialEq for WGPUErrorType
Source§impl TryFrom<&str> for WGPUErrorType
impl TryFrom<&str> for WGPUErrorType
impl Copy for WGPUErrorType
impl Eq for WGPUErrorType
impl StructuralPartialEq for WGPUErrorType
Auto Trait Implementations§
impl Freeze for WGPUErrorType
impl RefUnwindSafe for WGPUErrorType
impl Send for WGPUErrorType
impl Sync for WGPUErrorType
impl Unpin for WGPUErrorType
impl UnwindSafe for WGPUErrorType
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