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