#[non_exhaustive]#[repr(u32)]pub enum IndexBase {
Zero = 0,
One = 1,
}Expand description
Selects whether matrix indices are zero-based or one-based.
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.
Zero = 0
The base index is zero (C compatibility).
One = 1
The base index is one (one-based indexing compatibility).
Trait Implementations§
impl Copy for IndexBase
impl Eq for IndexBase
Source§impl From<IndexBase> for cusparseIndexBase_t
impl From<IndexBase> for cusparseIndexBase_t
Source§impl From<cusparseIndexBase_t> for IndexBase
impl From<cusparseIndexBase_t> for IndexBase
Source§fn from(value: cusparseIndexBase_t) -> Self
fn from(value: cusparseIndexBase_t) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for IndexBase
Auto Trait Implementations§
impl Freeze for IndexBase
impl RefUnwindSafe for IndexBase
impl Send for IndexBase
impl Sync for IndexBase
impl Unpin for IndexBase
impl UnsafeUnpin for IndexBase
impl UnwindSafe for IndexBase
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