#[repr(transparent)]pub struct cusparseStatus_t(pub i32);Expand description
Status / error code returned by cuSPARSE FFI calls.
Tuple Fields§
§0: i32Implementations§
Source§impl cusparseStatus_t
impl cusparseStatus_t
Sourcepub const NOT_INITIALIZED: Self
pub const NOT_INITIALIZED: Self
Status: not initialized.
Sourcepub const ALLOC_FAILED: Self
pub const ALLOC_FAILED: Self
Status: alloc failed.
Sourcepub const INVALID_VALUE: Self
pub const INVALID_VALUE: Self
Status: invalid value.
Sourcepub const ARCH_MISMATCH: Self
pub const ARCH_MISMATCH: Self
Status: arch mismatch.
Sourcepub const MAPPING_ERROR: Self
pub const MAPPING_ERROR: Self
Status: mapping error.
Sourcepub const EXECUTION_FAILED: Self
pub const EXECUTION_FAILED: Self
Status: execution failed.
Sourcepub const INTERNAL_ERROR: Self
pub const INTERNAL_ERROR: Self
Status: internal error.
Sourcepub const MATRIX_TYPE_NOT_SUPPORTED: Self
pub const MATRIX_TYPE_NOT_SUPPORTED: Self
Status: matrix type not supported.
Sourcepub const ZERO_PIVOT: Self
pub const ZERO_PIVOT: Self
Status: zero pivot.
Sourcepub const NOT_SUPPORTED: Self
pub const NOT_SUPPORTED: Self
Status: not supported.
Sourcepub const INSUFFICIENT_RESOURCES: Self
pub const INSUFFICIENT_RESOURCES: Self
Status: insufficient resources.
Sourcepub const fn is_success(self) -> bool
pub const fn is_success(self) -> bool
Returns true when this is the success status code.
Trait Implementations§
Source§impl Clone for cusparseStatus_t
impl Clone for cusparseStatus_t
impl Copy for cusparseStatus_t
Source§impl CudaStatus for cusparseStatus_t
impl CudaStatus for cusparseStatus_t
Source§fn name(self) -> &'static str
fn name(self) -> &'static str
The stable symbol name of this status
(e.g.
"CUDA_SUCCESS", "CUBLAS_STATUS_NOT_INITIALIZED").Source§fn description(self) -> &'static str
fn description(self) -> &'static str
A human-readable description of the status. Read more
Source§fn is_success(self) -> bool
fn is_success(self) -> bool
true if this status represents successful completion.Source§impl Debug for cusparseStatus_t
impl Debug for cusparseStatus_t
impl Eq for cusparseStatus_t
Source§impl Hash for cusparseStatus_t
impl Hash for cusparseStatus_t
Source§impl Ord for cusparseStatus_t
impl Ord for cusparseStatus_t
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for cusparseStatus_t
impl PartialEq for cusparseStatus_t
Source§impl PartialOrd for cusparseStatus_t
impl PartialOrd for cusparseStatus_t
impl StructuralPartialEq for cusparseStatus_t
Auto Trait Implementations§
impl Freeze for cusparseStatus_t
impl RefUnwindSafe for cusparseStatus_t
impl Send for cusparseStatus_t
impl Sync for cusparseStatus_t
impl Unpin for cusparseStatus_t
impl UnsafeUnpin for cusparseStatus_t
impl UnwindSafe for cusparseStatus_t
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