#[repr(transparent)]pub struct WGPUBackendType(pub c_int);Tuple Fields§
§0: c_intImplementations§
§impl WGPUBackendType
impl WGPUBackendType
pub const Undefined: Self = raw::WGPUBackendType_WGPUBackendType_Undefined
pub const Null: Self = raw::WGPUBackendType_WGPUBackendType_Null
pub const WebGPU: Self = raw::WGPUBackendType_WGPUBackendType_WebGPU
pub const D3D11: Self = raw::WGPUBackendType_WGPUBackendType_D3D11
pub const D3D12: Self = raw::WGPUBackendType_WGPUBackendType_D3D12
pub const Metal: Self = raw::WGPUBackendType_WGPUBackendType_Metal
pub const Vulkan: Self = raw::WGPUBackendType_WGPUBackendType_Vulkan
pub const OpenGL: Self = raw::WGPUBackendType_WGPUBackendType_OpenGL
pub const OpenGLES: Self = raw::WGPUBackendType_WGPUBackendType_OpenGLES
Trait Implementations§
Source§impl Clone for WGPUBackendType
impl Clone for WGPUBackendType
Source§fn clone(&self) -> WGPUBackendType
fn clone(&self) -> WGPUBackendType
Returns a duplicate 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 WGPUBackendType
impl Debug for WGPUBackendType
§impl Default for WGPUBackendType
impl Default for WGPUBackendType
Source§impl Hash for WGPUBackendType
impl Hash for WGPUBackendType
Source§impl Ord for WGPUBackendType
impl Ord for WGPUBackendType
Source§fn cmp(&self, other: &WGPUBackendType) -> Ordering
fn cmp(&self, other: &WGPUBackendType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for WGPUBackendType
impl PartialEq for WGPUBackendType
Source§impl PartialOrd for WGPUBackendType
impl PartialOrd for WGPUBackendType
impl Copy for WGPUBackendType
impl Eq for WGPUBackendType
impl StructuralPartialEq for WGPUBackendType
Auto Trait Implementations§
impl Freeze for WGPUBackendType
impl RefUnwindSafe for WGPUBackendType
impl Send for WGPUBackendType
impl Sync for WGPUBackendType
impl Unpin for WGPUBackendType
impl UnwindSafe for WGPUBackendType
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