#[repr(u32)]pub enum IndexBase {
Zero = 0,
One = 1,
}Expand description
Selects whether matrix indices are zero-based or one-based.
Variants§
Zero = 0
The base index is zero (C compatibility).
One = 1
The base index is one (one-based indexing compatibility).
Trait Implementations§
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.
Source§impl TryFromPrimitive for IndexBase
impl TryFromPrimitive for IndexBase
impl Copy for IndexBase
impl Eq for IndexBase
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