#[repr(i32)]pub enum WGPUCompilationMessageType {
Error = 1,
Warning = 2,
Info = 3,
}Variants§
Implementations§
Source§impl WGPUCompilationMessageType
impl WGPUCompilationMessageType
Sourcepub const fn is_error(&self) -> bool
pub const fn is_error(&self) -> bool
Returns true if the enum is WGPUCompilationMessageType::Error otherwise false
Sourcepub const fn is_warning(&self) -> bool
pub const fn is_warning(&self) -> bool
Returns true if the enum is WGPUCompilationMessageType::Warning otherwise false
Trait Implementations§
Source§impl Clone for WGPUCompilationMessageType
impl Clone for WGPUCompilationMessageType
Source§fn clone(&self) -> WGPUCompilationMessageType
fn clone(&self) -> WGPUCompilationMessageType
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 WGPUCompilationMessageType
impl Debug for WGPUCompilationMessageType
Source§impl Display for WGPUCompilationMessageType
impl Display for WGPUCompilationMessageType
Source§impl<'_derivative_strum> From<&'_derivative_strum WGPUCompilationMessageType> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum WGPUCompilationMessageType> for &'static str
Source§fn from(x: &'_derivative_strum WGPUCompilationMessageType) -> &'static str
fn from(x: &'_derivative_strum WGPUCompilationMessageType) -> &'static str
Converts to this type from the input type.
Source§impl From<WGPUCompilationMessageType> for &'static str
impl From<WGPUCompilationMessageType> for &'static str
Source§fn from(x: WGPUCompilationMessageType) -> &'static str
fn from(x: WGPUCompilationMessageType) -> &'static str
Converts to this type from the input type.
Source§impl FromStr for WGPUCompilationMessageType
impl FromStr for WGPUCompilationMessageType
Source§impl Hash for WGPUCompilationMessageType
impl Hash for WGPUCompilationMessageType
Source§impl TryFrom<&str> for WGPUCompilationMessageType
impl TryFrom<&str> for WGPUCompilationMessageType
impl Copy for WGPUCompilationMessageType
impl Eq for WGPUCompilationMessageType
impl StructuralPartialEq for WGPUCompilationMessageType
Auto Trait Implementations§
impl Freeze for WGPUCompilationMessageType
impl RefUnwindSafe for WGPUCompilationMessageType
impl Send for WGPUCompilationMessageType
impl Sync for WGPUCompilationMessageType
impl Unpin for WGPUCompilationMessageType
impl UnwindSafe for WGPUCompilationMessageType
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