#[repr(u32)]pub enum CUfunc_cache_enum {
CU_FUNC_CACHE_PREFER_NONE = 0,
CU_FUNC_CACHE_PREFER_SHARED = 1,
CU_FUNC_CACHE_PREFER_L1 = 2,
CU_FUNC_CACHE_PREFER_EQUAL = 3,
}Expand description
Function cache configurations.
Variants§
CU_FUNC_CACHE_PREFER_NONE = 0
no preference for shared memory or L1 (default).
CU_FUNC_CACHE_PREFER_SHARED = 1
prefer larger shared memory and smaller L1 cache.
CU_FUNC_CACHE_PREFER_L1 = 2
prefer larger L1 cache and smaller shared memory.
CU_FUNC_CACHE_PREFER_EQUAL = 3
prefer equal sized L1 cache and shared memory.
Trait Implementations§
Source§impl Clone for CUfunc_cache_enum
impl Clone for CUfunc_cache_enum
Source§fn clone(&self) -> CUfunc_cache_enum
fn clone(&self) -> CUfunc_cache_enum
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CUfunc_cache_enum
Source§impl Debug for CUfunc_cache_enum
impl Debug for CUfunc_cache_enum
impl Eq for CUfunc_cache_enum
Source§impl From<CUfunc_cache_enum> for u32
impl From<CUfunc_cache_enum> for u32
Source§fn from(enum_value: CUfunc_cache_enum) -> Self
fn from(enum_value: CUfunc_cache_enum) -> Self
Converts to this type from the input type.
Source§impl Hash for CUfunc_cache_enum
impl Hash for CUfunc_cache_enum
Source§impl Ord for CUfunc_cache_enum
impl Ord for CUfunc_cache_enum
Source§fn cmp(&self, other: &CUfunc_cache_enum) -> Ordering
fn cmp(&self, other: &CUfunc_cache_enum) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CUfunc_cache_enum
impl PartialEq for CUfunc_cache_enum
Source§fn eq(&self, other: &CUfunc_cache_enum) -> bool
fn eq(&self, other: &CUfunc_cache_enum) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for CUfunc_cache_enum
impl PartialOrd for CUfunc_cache_enum
impl StructuralPartialEq for CUfunc_cache_enum
Source§impl TryFrom<u32> for CUfunc_cache_enum
impl TryFrom<u32> for CUfunc_cache_enum
Source§type Error = TryFromPrimitiveError<CUfunc_cache_enum>
type Error = TryFromPrimitiveError<CUfunc_cache_enum>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for CUfunc_cache_enum
impl TryFromPrimitive for CUfunc_cache_enum
const NAME: &'static str = "CUfunc_cache_enum"
type Primitive = u32
type Error = TryFromPrimitiveError<CUfunc_cache_enum>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for CUfunc_cache_enum
impl RefUnwindSafe for CUfunc_cache_enum
impl Send for CUfunc_cache_enum
impl Sync for CUfunc_cache_enum
impl Unpin for CUfunc_cache_enum
impl UnsafeUnpin for CUfunc_cache_enum
impl UnwindSafe for CUfunc_cache_enum
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