#[non_exhaustive]#[repr(u32)]pub enum cudaMemRangeAttribute {
cudaMemRangeAttributeReadMostly = 1,
cudaMemRangeAttributePreferredLocation = 2,
cudaMemRangeAttributeAccessedBy = 3,
cudaMemRangeAttributeLastPrefetchLocation = 4,
}Expand description
CUDA range attributes
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.
cudaMemRangeAttributeReadMostly = 1
< Whether the range will mostly be read and only occassionally be written to
cudaMemRangeAttributePreferredLocation = 2
< The preferred location of the range
cudaMemRangeAttributeAccessedBy = 3
< Memory range has ::cudaMemAdviseSetAccessedBy set for specified device
cudaMemRangeAttributeLastPrefetchLocation = 4
< The last location to which the range was prefetched
Trait Implementations§
Source§impl Clone for cudaMemRangeAttribute
impl Clone for cudaMemRangeAttribute
Source§fn clone(&self) -> cudaMemRangeAttribute
fn clone(&self) -> cudaMemRangeAttribute
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 cudaMemRangeAttribute
impl Debug for cudaMemRangeAttribute
Source§impl Hash for cudaMemRangeAttribute
impl Hash for cudaMemRangeAttribute
Source§impl PartialEq for cudaMemRangeAttribute
impl PartialEq for cudaMemRangeAttribute
impl Copy for cudaMemRangeAttribute
impl Eq for cudaMemRangeAttribute
impl StructuralPartialEq for cudaMemRangeAttribute
Auto Trait Implementations§
impl Freeze for cudaMemRangeAttribute
impl RefUnwindSafe for cudaMemRangeAttribute
impl Send for cudaMemRangeAttribute
impl Sync for cudaMemRangeAttribute
impl Unpin for cudaMemRangeAttribute
impl UnwindSafe for cudaMemRangeAttribute
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