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