#[repr(transparent)]pub struct WGPUDeviceLostReason(pub c_int);Tuple Fields§
§0: c_intImplementations§
§impl WGPUDeviceLostReason
impl WGPUDeviceLostReason
pub const Unknown: Self = raw::WGPUDeviceLostReason_WGPUDeviceLostReason_Unknown
pub const Destroyed: Self = raw::WGPUDeviceLostReason_WGPUDeviceLostReason_Destroyed
pub const CallbackCancelled: Self = raw::WGPUDeviceLostReason_WGPUDeviceLostReason_CallbackCancelled
pub const FailedCreation: Self = raw::WGPUDeviceLostReason_WGPUDeviceLostReason_FailedCreation
Trait Implementations§
Source§impl Clone for WGPUDeviceLostReason
impl Clone for WGPUDeviceLostReason
Source§fn clone(&self) -> WGPUDeviceLostReason
fn clone(&self) -> WGPUDeviceLostReason
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 WGPUDeviceLostReason
impl Debug for WGPUDeviceLostReason
Source§impl Hash for WGPUDeviceLostReason
impl Hash for WGPUDeviceLostReason
Source§impl Ord for WGPUDeviceLostReason
impl Ord for WGPUDeviceLostReason
Source§fn cmp(&self, other: &WGPUDeviceLostReason) -> Ordering
fn cmp(&self, other: &WGPUDeviceLostReason) -> 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 WGPUDeviceLostReason
impl PartialEq for WGPUDeviceLostReason
Source§impl PartialOrd for WGPUDeviceLostReason
impl PartialOrd for WGPUDeviceLostReason
impl Copy for WGPUDeviceLostReason
impl Eq for WGPUDeviceLostReason
impl StructuralPartialEq for WGPUDeviceLostReason
Auto Trait Implementations§
impl Freeze for WGPUDeviceLostReason
impl RefUnwindSafe for WGPUDeviceLostReason
impl Send for WGPUDeviceLostReason
impl Sync for WGPUDeviceLostReason
impl Unpin for WGPUDeviceLostReason
impl UnwindSafe for WGPUDeviceLostReason
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