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§
Auto Trait Implementations§
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