#[non_exhaustive]#[repr(u32)]pub enum FunctionCache {
PreferNone = 0,
PreferShared = 1,
PreferL1 = 2,
PreferEqual = 3,
}Expand description
Function cache configurations
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.
PreferNone = 0
no preference for shared memory or L1 (default).
prefer larger shared memory and smaller L1 cache.
PreferL1 = 2
prefer larger L1 cache and smaller shared memory.
PreferEqual = 3
prefer equal sized L1 cache and shared memory.
Trait Implementations§
Source§impl Clone for FunctionCache
impl Clone for FunctionCache
impl Copy for FunctionCache
Source§impl Debug for FunctionCache
impl Debug for FunctionCache
Source§impl Display for FunctionCache
impl Display for FunctionCache
impl Eq for FunctionCache
Source§impl From<FunctionCache> for u32
impl From<FunctionCache> for u32
Source§fn from(enum_value: FunctionCache) -> Self
fn from(enum_value: FunctionCache) -> Self
Converts to this type from the input type.
Source§impl From<FunctionCache> for CUfunc_cache
impl From<FunctionCache> for CUfunc_cache
Source§fn from(value: FunctionCache) -> Self
fn from(value: FunctionCache) -> Self
Converts to this type from the input type.
Source§impl Hash for FunctionCache
impl Hash for FunctionCache
Source§impl PartialEq for FunctionCache
impl PartialEq for FunctionCache
impl StructuralPartialEq for FunctionCache
Source§impl TryFrom<CUfunc_cache_enum> for FunctionCache
impl TryFrom<CUfunc_cache_enum> for FunctionCache
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: CUfunc_cache) -> Result<Self, UnknownEnumValue>
fn try_from(value: CUfunc_cache) -> Result<Self, UnknownEnumValue>
Performs the conversion.
Source§impl TryFrom<u32> for FunctionCache
impl TryFrom<u32> for FunctionCache
Source§type Error = TryFromPrimitiveError<FunctionCache>
type Error = TryFromPrimitiveError<FunctionCache>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for FunctionCache
impl TryFromPrimitive for FunctionCache
const NAME: &'static str = "FunctionCache"
type Primitive = u32
type Error = TryFromPrimitiveError<FunctionCache>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Forget for FunctionCache
impl Freeze for FunctionCache
impl Move for FunctionCache
impl RefUnwindSafe for FunctionCache
impl Send for FunctionCache
impl Sync for FunctionCache
impl Unpin for FunctionCache
impl UnsafeUnpin for FunctionCache
impl UnwindSafe for FunctionCache
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.