Struct cubecl_cuda::CudaDevice
source · pub struct CudaDevice {
pub index: usize,
}
Fields§
§index: usize
Implementations§
Trait Implementations§
source§impl Clone for CudaDevice
impl Clone for CudaDevice
source§fn clone(&self) -> CudaDevice
fn clone(&self) -> CudaDevice
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 CudaDevice
impl Debug for CudaDevice
source§impl Default for CudaDevice
impl Default for CudaDevice
source§fn default() -> CudaDevice
fn default() -> CudaDevice
Returns the “default value” for a type. Read more
source§impl Hash for CudaDevice
impl Hash for CudaDevice
source§impl PartialEq for CudaDevice
impl PartialEq for CudaDevice
source§fn eq(&self, other: &CudaDevice) -> bool
fn eq(&self, other: &CudaDevice) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for CudaDevice
impl StructuralPartialEq for CudaDevice
Auto Trait Implementations§
impl Freeze for CudaDevice
impl RefUnwindSafe for CudaDevice
impl Send for CudaDevice
impl Sync for CudaDevice
impl Unpin for CudaDevice
impl UnwindSafe for CudaDevice
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)