#[non_exhaustive]#[repr(u32)]pub enum FunctionCache {
PreferNone = 0,
PreferShared = 1,
PreferL1 = 2,
PreferEqual = 3,
}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.
Trait Implementations§
Source§impl Clone for FunctionCache
impl Clone for FunctionCache
Source§fn clone(&self) -> FunctionCache
fn clone(&self) -> FunctionCache
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 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<CUfunc_cache_enum> for FunctionCache
impl From<CUfunc_cache_enum> for FunctionCache
Source§fn from(value: CUfunc_cache) -> Self
fn from(value: CUfunc_cache) -> Self
Converts to this type from the input type.
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
Source§fn eq(&self, other: &FunctionCache) -> bool
fn eq(&self, other: &FunctionCache) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FunctionCache
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 Freeze 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