#[non_exhaustive]#[repr(u32)]pub enum FunctionAttribute {
Show 17 variants
MaxThreadsPerBlock = 0,
SharedSizeBytes = 1,
ConstSizeBytes = 2,
LocalSizeBytes = 3,
NumRegs = 4,
PtxVersion = 5,
BinaryVersion = 6,
CacheModeCa = 7,
MaxDynamicSharedSizeBytes = 8,
PreferredSharedMemoryCarveout = 9,
ClusterSizeMustBeSet = 10,
RequiredClusterWidth = 11,
RequiredClusterHeight = 12,
RequiredClusterDepth = 13,
NonPortableClusterSizeAllowed = 14,
ClusterSchedulingPolicyPreference = 15,
Max = 16,
}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.
MaxThreadsPerBlock = 0
ConstSizeBytes = 2
LocalSizeBytes = 3
NumRegs = 4
PtxVersion = 5
BinaryVersion = 6
CacheModeCa = 7
ClusterSizeMustBeSet = 10
RequiredClusterWidth = 11
RequiredClusterHeight = 12
RequiredClusterDepth = 13
NonPortableClusterSizeAllowed = 14
ClusterSchedulingPolicyPreference = 15
Max = 16
Trait Implementations§
Source§impl Clone for FunctionAttribute
impl Clone for FunctionAttribute
Source§fn clone(&self) -> FunctionAttribute
fn clone(&self) -> FunctionAttribute
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 FunctionAttribute
Source§impl Debug for FunctionAttribute
impl Debug for FunctionAttribute
Source§impl Display for FunctionAttribute
impl Display for FunctionAttribute
impl Eq for FunctionAttribute
Source§impl From<CUfunction_attribute_enum> for FunctionAttribute
impl From<CUfunction_attribute_enum> for FunctionAttribute
Source§fn from(value: CUfunction_attribute) -> Self
fn from(value: CUfunction_attribute) -> Self
Converts to this type from the input type.
Source§impl From<FunctionAttribute> for u32
impl From<FunctionAttribute> for u32
Source§fn from(enum_value: FunctionAttribute) -> Self
fn from(enum_value: FunctionAttribute) -> Self
Converts to this type from the input type.
Source§impl From<FunctionAttribute> for CUfunction_attribute
impl From<FunctionAttribute> for CUfunction_attribute
Source§fn from(value: FunctionAttribute) -> Self
fn from(value: FunctionAttribute) -> Self
Converts to this type from the input type.
Source§impl Hash for FunctionAttribute
impl Hash for FunctionAttribute
Source§impl PartialEq for FunctionAttribute
impl PartialEq for FunctionAttribute
Source§fn eq(&self, other: &FunctionAttribute) -> bool
fn eq(&self, other: &FunctionAttribute) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FunctionAttribute
Source§impl TryFrom<u32> for FunctionAttribute
impl TryFrom<u32> for FunctionAttribute
Source§type Error = TryFromPrimitiveError<FunctionAttribute>
type Error = TryFromPrimitiveError<FunctionAttribute>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for FunctionAttribute
impl TryFromPrimitive for FunctionAttribute
const NAME: &'static str = "FunctionAttribute"
type Primitive = u32
type Error = TryFromPrimitiveError<FunctionAttribute>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for FunctionAttribute
impl RefUnwindSafe for FunctionAttribute
impl Send for FunctionAttribute
impl Sync for FunctionAttribute
impl Unpin for FunctionAttribute
impl UnsafeUnpin for FunctionAttribute
impl UnwindSafe for FunctionAttribute
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