#[non_exhaustive]#[repr(u32)]pub enum cudaMemLocationType {
cudaMemLocationTypeInvalid = 0,
cudaMemLocationTypeDevice = 1,
}
Expand description
Specifies the type of location
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.
cudaMemLocationTypeInvalid = 0
cudaMemLocationTypeDevice = 1
< Location is a device location, thus id is a device ordinal
Trait Implementations§
Source§impl Clone for cudaMemLocationType
impl Clone for cudaMemLocationType
Source§fn clone(&self) -> cudaMemLocationType
fn clone(&self) -> cudaMemLocationType
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 moreSource§impl Debug for cudaMemLocationType
impl Debug for cudaMemLocationType
Source§impl Hash for cudaMemLocationType
impl Hash for cudaMemLocationType
Source§impl PartialEq for cudaMemLocationType
impl PartialEq for cudaMemLocationType
impl Copy for cudaMemLocationType
impl Eq for cudaMemLocationType
impl StructuralPartialEq for cudaMemLocationType
Auto Trait Implementations§
impl Freeze for cudaMemLocationType
impl RefUnwindSafe for cudaMemLocationType
impl Send for cudaMemLocationType
impl Sync for cudaMemLocationType
impl Unpin for cudaMemLocationType
impl UnwindSafe for cudaMemLocationType
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