pub struct MetraleDevice {
pub ctx: Arc<CudaContext>,
pub ordinal: usize,
}Expand description
2026-09-25: A cudarc CudaContext and the GPU ordinal it was created on.
Fields§
§ctx: Arc<CudaContext>§ordinal: usizeImplementations§
Trait Implementations§
Source§impl Clone for MetraleDevice
impl Clone for MetraleDevice
Source§fn clone(&self) -> MetraleDevice
fn clone(&self) -> MetraleDevice
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 moreAuto Trait Implementations§
impl Freeze for MetraleDevice
impl RefUnwindSafe for MetraleDevice
impl Send for MetraleDevice
impl Sync for MetraleDevice
impl Unpin for MetraleDevice
impl UnwindSafe for MetraleDevice
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