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