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