Enum cudarc::curand::sys::curandStatus
source · #[repr(u32)]pub enum curandStatus {
Show 13 variants
CURAND_STATUS_SUCCESS,
CURAND_STATUS_VERSION_MISMATCH,
CURAND_STATUS_NOT_INITIALIZED,
CURAND_STATUS_ALLOCATION_FAILED,
CURAND_STATUS_TYPE_ERROR,
CURAND_STATUS_OUT_OF_RANGE,
CURAND_STATUS_LENGTH_NOT_MULTIPLE,
CURAND_STATUS_DOUBLE_PRECISION_REQUIRED,
CURAND_STATUS_LAUNCH_FAILURE,
CURAND_STATUS_PREEXISTING_FAILURE,
CURAND_STATUS_INITIALIZATION_FAILED,
CURAND_STATUS_ARCH_MISMATCH,
CURAND_STATUS_INTERNAL_ERROR,
}
Variants§
CURAND_STATUS_SUCCESS
CURAND_STATUS_VERSION_MISMATCH
CURAND_STATUS_NOT_INITIALIZED
CURAND_STATUS_ALLOCATION_FAILED
CURAND_STATUS_TYPE_ERROR
CURAND_STATUS_OUT_OF_RANGE
CURAND_STATUS_LENGTH_NOT_MULTIPLE
CURAND_STATUS_DOUBLE_PRECISION_REQUIRED
CURAND_STATUS_LAUNCH_FAILURE
CURAND_STATUS_PREEXISTING_FAILURE
CURAND_STATUS_INITIALIZATION_FAILED
CURAND_STATUS_ARCH_MISMATCH
CURAND_STATUS_INTERNAL_ERROR
Implementations§
source§impl curandStatus_t
impl curandStatus_t
sourcepub fn result(self) -> Result<(), CurandError>
pub fn result(self) -> Result<(), CurandError>
Transforms into a Result of CurandError
Trait Implementations§
source§impl Clone for curandStatus
impl Clone for curandStatus
source§fn clone(&self) -> curandStatus
fn clone(&self) -> curandStatus
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for curandStatus
impl Debug for curandStatus
source§impl Hash for curandStatus
impl Hash for curandStatus
source§impl Ord for curandStatus
impl Ord for curandStatus
source§fn cmp(&self, other: &curandStatus) -> Ordering
fn cmp(&self, other: &curandStatus) -> Ordering
1.21.0 · 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
source§impl PartialEq<curandStatus> for curandStatus
impl PartialEq<curandStatus> for curandStatus
source§fn eq(&self, other: &curandStatus) -> bool
fn eq(&self, other: &curandStatus) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<curandStatus> for curandStatus
impl PartialOrd<curandStatus> for curandStatus
source§fn partial_cmp(&self, other: &curandStatus) -> Option<Ordering>
fn partial_cmp(&self, other: &curandStatus) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for curandStatus
impl Eq for curandStatus
impl StructuralEq for curandStatus
impl StructuralPartialEq for curandStatus
Auto Trait Implementations§
impl RefUnwindSafe for curandStatus
impl Send for curandStatus
impl Sync for curandStatus
impl Unpin for curandStatus
impl UnwindSafe for curandStatus
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