Struct sierra::backend::WeakDevice
source · #[repr(transparent)]pub struct WeakDevice { /* private fields */ }
Expand description
Weak reference to the device. Must be upgraded to strong reference before use. Upgrade will fail if last strong reference to device was dropped.
Implementations§
Trait Implementations§
source§impl Clone for WeakDevice
impl Clone for WeakDevice
source§fn clone(&self) -> WeakDevice
fn clone(&self) -> WeakDevice
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 WeakDevice
impl Debug for WeakDevice
source§impl PartialEq<WeakDevice> for &Device
impl PartialEq<WeakDevice> for &Device
source§fn eq(&self, weak: &WeakDevice) -> bool
fn eq(&self, weak: &WeakDevice) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<WeakDevice> for &WeakDevice
impl PartialEq<WeakDevice> for &WeakDevice
source§fn eq(&self, weak: &WeakDevice) -> bool
fn eq(&self, weak: &WeakDevice) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<WeakDevice> for Device
impl PartialEq<WeakDevice> for Device
source§fn eq(&self, weak: &WeakDevice) -> bool
fn eq(&self, weak: &WeakDevice) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<WeakDevice> for WeakDevice
impl PartialEq<WeakDevice> for WeakDevice
source§fn eq(&self, weak: &WeakDevice) -> bool
fn eq(&self, weak: &WeakDevice) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.