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