Struct wgpu_core::device::any_device::AnyDevice
source · pub struct AnyDevice { /* private fields */ }
Expand description
A pointer to a Device<A>
, for any backend A
.
Any AnyDevice
is just like an Arc<Device<A>>
, except that the A
type
parameter is erased. To access the Device
, you must downcast to a
particular backend with the [downcast_ref
] or [downcast_clone
]
methods.
Implementations§
Trait Implementations§
impl Send for AnyDevice
impl Sync for AnyDevice
Auto Trait Implementations§
impl Freeze for AnyDevice
impl RefUnwindSafe for AnyDevice
impl Unpin for AnyDevice
impl UnwindSafe for AnyDevice
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