#[non_exhaustive]#[repr(u32)]pub enum cudaMemAllocationHandleType {
cudaMemHandleTypeNone = 0,
cudaMemHandleTypePosixFileDescriptor = 1,
cudaMemHandleTypeWin32 = 2,
cudaMemHandleTypeWin32Kmt = 4,
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
cudaMemHandleTypeNone = 0
cudaMemHandleTypePosixFileDescriptor = 1
cudaMemHandleTypeWin32 = 2
cudaMemHandleTypeWin32Kmt = 4
Trait Implementations§
source§impl Clone for cudaMemAllocationHandleType
impl Clone for cudaMemAllocationHandleType
source§fn clone(&self) -> cudaMemAllocationHandleType
fn clone(&self) -> cudaMemAllocationHandleType
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 cudaMemAllocationHandleType
impl Debug for cudaMemAllocationHandleType
source§impl Hash for cudaMemAllocationHandleType
impl Hash for cudaMemAllocationHandleType
source§impl PartialEq for cudaMemAllocationHandleType
impl PartialEq for cudaMemAllocationHandleType
source§fn eq(&self, other: &cudaMemAllocationHandleType) -> bool
fn eq(&self, other: &cudaMemAllocationHandleType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for cudaMemAllocationHandleType
impl Eq for cudaMemAllocationHandleType
impl StructuralPartialEq for cudaMemAllocationHandleType
Auto Trait Implementations§
impl RefUnwindSafe for cudaMemAllocationHandleType
impl Send for cudaMemAllocationHandleType
impl Sync for cudaMemAllocationHandleType
impl Unpin for cudaMemAllocationHandleType
impl UnwindSafe for cudaMemAllocationHandleType
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