#[non_exhaustive]#[repr(u32)]pub enum JitFallback {
PreferPtx = 0,
PreferBinary = 1,
}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 JitFallback
impl Clone for JitFallback
Source§fn clone(&self) -> JitFallback
fn clone(&self) -> JitFallback
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 JitFallback
Source§impl Debug for JitFallback
impl Debug for JitFallback
Source§impl Display for JitFallback
impl Display for JitFallback
impl Eq for JitFallback
Source§impl From<CUjit_fallback_enum> for JitFallback
impl From<CUjit_fallback_enum> for JitFallback
Source§fn from(value: CUjit_fallback) -> Self
fn from(value: CUjit_fallback) -> Self
Converts to this type from the input type.
Source§impl From<JitFallback> for u32
impl From<JitFallback> for u32
Source§fn from(enum_value: JitFallback) -> Self
fn from(enum_value: JitFallback) -> Self
Converts to this type from the input type.
Source§impl From<JitFallback> for CUjit_fallback
impl From<JitFallback> for CUjit_fallback
Source§fn from(value: JitFallback) -> Self
fn from(value: JitFallback) -> Self
Converts to this type from the input type.
Source§impl Hash for JitFallback
impl Hash for JitFallback
Source§impl PartialEq for JitFallback
impl PartialEq for JitFallback
Source§fn eq(&self, other: &JitFallback) -> bool
fn eq(&self, other: &JitFallback) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for JitFallback
Source§impl TryFrom<u32> for JitFallback
impl TryFrom<u32> for JitFallback
Source§type Error = TryFromPrimitiveError<JitFallback>
type Error = TryFromPrimitiveError<JitFallback>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for JitFallback
impl TryFromPrimitive for JitFallback
const NAME: &'static str = "JitFallback"
type Primitive = u32
type Error = TryFromPrimitiveError<JitFallback>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for JitFallback
impl RefUnwindSafe for JitFallback
impl Send for JitFallback
impl Sync for JitFallback
impl Unpin for JitFallback
impl UnsafeUnpin for JitFallback
impl UnwindSafe for JitFallback
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