Struct CUresult

Source
#[repr(transparent)]
pub struct CUresult(pub c_uint);
Expand description

Error codes Error codes

Tuple Fields§

§0: c_uint

Implementations§

Source§

impl cudaError_enum

Source

pub const CUDA_SUCCESS: cudaError_enum

The API call returned with no errors. In the case of query calls, this also means that the operation being queried is complete (see ::cuEventQuery() and ::cuStreamQuery()).

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_INVALID_VALUE: cudaError_enum

This indicates that one or more of the parameters passed to the API call is not within an acceptable range of values.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_OUT_OF_MEMORY: cudaError_enum

The API call failed because it was unable to allocate enough memory or other resources to perform the requested operation.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_NOT_INITIALIZED: cudaError_enum

This indicates that the CUDA driver has not been initialized with ::cuInit() or that initialization has failed.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_DEINITIALIZED: cudaError_enum

This indicates that the CUDA driver is in the process of shutting down.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_PROFILER_DISABLED: cudaError_enum

This indicates profiler is not initialized for this run. This can happen when the application is running with external profiling tools like visual profiler.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_PROFILER_NOT_INITIALIZED: cudaError_enum

\deprecated This error return is deprecated as of CUDA 5.0. It is no longer an error to attempt to enable/disable the profiling via ::cuProfilerStart or ::cuProfilerStop without initialization.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_PROFILER_ALREADY_STARTED: cudaError_enum

\deprecated This error return is deprecated as of CUDA 5.0. It is no longer an error to call cuProfilerStart() when profiling is already enabled.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_PROFILER_ALREADY_STOPPED: cudaError_enum

\deprecated This error return is deprecated as of CUDA 5.0. It is no longer an error to call cuProfilerStop() when profiling is already disabled.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_STUB_LIBRARY: cudaError_enum

This indicates that the CUDA driver that the application has loaded is a stub library. Applications that run with the stub rather than a real driver loaded will result in CUDA API returning this error.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_DEVICE_UNAVAILABLE: cudaError_enum

This indicates that requested CUDA device is unavailable at the current time. Devices are often unavailable due to use of ::CU_COMPUTEMODE_EXCLUSIVE_PROCESS or ::CU_COMPUTEMODE_PROHIBITED.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_NO_DEVICE: cudaError_enum

This indicates that no CUDA-capable devices were detected by the installed CUDA driver.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_INVALID_DEVICE: cudaError_enum

This indicates that the device ordinal supplied by the user does not correspond to a valid CUDA device or that the action requested is invalid for the specified device.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_DEVICE_NOT_LICENSED: cudaError_enum

This error indicates that the Grid license is not applied.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_INVALID_IMAGE: cudaError_enum

This indicates that the device kernel image is invalid. This can also indicate an invalid CUDA module.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_INVALID_CONTEXT: cudaError_enum

This most frequently indicates that there is no context bound to the current thread. This can also be returned if the context passed to an API call is not a valid handle (such as a context that has had ::cuCtxDestroy() invoked on it). This can also be returned if a user mixes different API versions (i.e. 3010 context with 3020 API calls). See ::cuCtxGetApiVersion() for more details. This can also be returned if the green context passed to an API call was not converted to a ::CUcontext using ::cuCtxFromGreenCtx API.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_CONTEXT_ALREADY_CURRENT: cudaError_enum

This indicated that the context being supplied as a parameter to the API call was already the active context. \deprecated This error return is deprecated as of CUDA 3.2. It is no longer an error to attempt to push the active context via ::cuCtxPushCurrent().

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_MAP_FAILED: cudaError_enum

This indicates that a map or register operation has failed.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_UNMAP_FAILED: cudaError_enum

This indicates that an unmap or unregister operation has failed.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_ARRAY_IS_MAPPED: cudaError_enum

This indicates that the specified array is currently mapped and thus cannot be destroyed.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_ALREADY_MAPPED: cudaError_enum

This indicates that the resource is already mapped.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_NO_BINARY_FOR_GPU: cudaError_enum

This indicates that there is no kernel image available that is suitable for the device. This can occur when a user specifies code generation options for a particular CUDA source file that do not include the corresponding device configuration.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_ALREADY_ACQUIRED: cudaError_enum

This indicates that a resource has already been acquired.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_NOT_MAPPED: cudaError_enum

This indicates that a resource is not mapped.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_NOT_MAPPED_AS_ARRAY: cudaError_enum

This indicates that a mapped resource is not available for access as an array.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_NOT_MAPPED_AS_POINTER: cudaError_enum

This indicates that a mapped resource is not available for access as a pointer.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_ECC_UNCORRECTABLE: cudaError_enum

This indicates that an uncorrectable ECC error was detected during execution.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_UNSUPPORTED_LIMIT: cudaError_enum

This indicates that the ::CUlimit passed to the API call is not supported by the active device.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_CONTEXT_ALREADY_IN_USE: cudaError_enum

This indicates that the ::CUcontext passed to the API call can only be bound to a single CPU thread at a time but is already bound to a CPU thread.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_PEER_ACCESS_UNSUPPORTED: cudaError_enum

This indicates that peer access is not supported across the given devices.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_INVALID_PTX: cudaError_enum

This indicates that a PTX JIT compilation failed.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_INVALID_GRAPHICS_CONTEXT: cudaError_enum

This indicates an error with OpenGL or DirectX context.

Source§

impl cudaError_enum

This indicates that an uncorrectable NVLink error was detected during the execution.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_JIT_COMPILER_NOT_FOUND: cudaError_enum

This indicates that the PTX JIT compiler library was not found.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_UNSUPPORTED_PTX_VERSION: cudaError_enum

This indicates that the provided PTX was compiled with an unsupported toolchain.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_JIT_COMPILATION_DISABLED: cudaError_enum

This indicates that the PTX JIT compilation was disabled.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_UNSUPPORTED_EXEC_AFFINITY: cudaError_enum

This indicates that the ::CUexecAffinityType passed to the API call is not supported by the active device.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_UNSUPPORTED_DEVSIDE_SYNC: cudaError_enum

This indicates that the code to be compiled by the PTX JIT contains unsupported call to cudaDeviceSynchronize.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_INVALID_SOURCE: cudaError_enum

This indicates that the device kernel source is invalid. This includes compilation/linker errors encountered in device code or user error.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_FILE_NOT_FOUND: cudaError_enum

This indicates that the file specified was not found.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_SHARED_OBJECT_SYMBOL_NOT_FOUND: cudaError_enum

This indicates that a link to a shared object failed to resolve.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_SHARED_OBJECT_INIT_FAILED: cudaError_enum

This indicates that initialization of a shared object failed.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_OPERATING_SYSTEM: cudaError_enum

This indicates that an OS call failed.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_INVALID_HANDLE: cudaError_enum

This indicates that a resource handle passed to the API call was not valid. Resource handles are opaque types like ::CUstream and ::CUevent.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_ILLEGAL_STATE: cudaError_enum

This indicates that a resource required by the API call is not in a valid state to perform the requested operation.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_LOSSY_QUERY: cudaError_enum

This indicates an attempt was made to introspect an object in a way that would discard semantically important information. This is either due to the object using funtionality newer than the API version used to introspect it or omission of optional return arguments.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_NOT_FOUND: cudaError_enum

This indicates that a named symbol was not found. Examples of symbols are global/constant variable names, driver function names, texture names, and surface names.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_NOT_READY: cudaError_enum

This indicates that asynchronous operations issued previously have not completed yet. This result is not actually an error, but must be indicated differently than ::CUDA_SUCCESS (which indicates completion). Calls that may return this value include ::cuEventQuery() and ::cuStreamQuery().

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_ILLEGAL_ADDRESS: cudaError_enum

While executing a kernel, the device encountered a load or store instruction on an invalid memory address. This leaves the process in an inconsistent state and any further CUDA work will return the same error. To continue using CUDA, the process must be terminated and relaunched.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_LAUNCH_OUT_OF_RESOURCES: cudaError_enum

This indicates that a launch did not occur because it did not have appropriate resources. This error usually indicates that the user has attempted to pass too many arguments to the device kernel, or the kernel launch specifies too many threads for the kernel’s register count. Passing arguments of the wrong size (i.e. a 64-bit pointer when a 32-bit int is expected) is equivalent to passing too many arguments and can also result in this error.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_LAUNCH_TIMEOUT: cudaError_enum

This indicates that the device kernel took too long to execute. This can only occur if timeouts are enabled - see the device attribute ::CU_DEVICE_ATTRIBUTE_KERNEL_EXEC_TIMEOUT for more information. This leaves the process in an inconsistent state and any further CUDA work will return the same error. To continue using CUDA, the process must be terminated and relaunched.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_LAUNCH_INCOMPATIBLE_TEXTURING: cudaError_enum

This error indicates a kernel launch that uses an incompatible texturing mode.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_PEER_ACCESS_ALREADY_ENABLED: cudaError_enum

This error indicates that a call to ::cuCtxEnablePeerAccess() is trying to re-enable peer access to a context which has already had peer access to it enabled.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_PEER_ACCESS_NOT_ENABLED: cudaError_enum

This error indicates that ::cuCtxDisablePeerAccess() is trying to disable peer access which has not been enabled yet via ::cuCtxEnablePeerAccess().

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_PRIMARY_CONTEXT_ACTIVE: cudaError_enum

This error indicates that the primary context for the specified device has already been initialized.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_CONTEXT_IS_DESTROYED: cudaError_enum

This error indicates that the context current to the calling thread has been destroyed using ::cuCtxDestroy, or is a primary context which has not yet been initialized.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_ASSERT: cudaError_enum

A device-side assert triggered during kernel execution. The context cannot be used anymore, and must be destroyed. All existing device memory allocations from this context are invalid and must be reconstructed if the program is to continue using CUDA.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_TOO_MANY_PEERS: cudaError_enum

This error indicates that the hardware resources required to enable peer access have been exhausted for one or more of the devices passed to ::cuCtxEnablePeerAccess().

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_HOST_MEMORY_ALREADY_REGISTERED: cudaError_enum

This error indicates that the memory range passed to ::cuMemHostRegister() has already been registered.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_HOST_MEMORY_NOT_REGISTERED: cudaError_enum

This error indicates that the pointer passed to ::cuMemHostUnregister() does not correspond to any currently registered memory region.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_HARDWARE_STACK_ERROR: cudaError_enum

While executing a kernel, the device encountered a stack error. This can be due to stack corruption or exceeding the stack size limit. This leaves the process in an inconsistent state and any further CUDA work will return the same error. To continue using CUDA, the process must be terminated and relaunched.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_ILLEGAL_INSTRUCTION: cudaError_enum

While executing a kernel, the device encountered an illegal instruction. This leaves the process in an inconsistent state and any further CUDA work will return the same error. To continue using CUDA, the process must be terminated and relaunched.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_MISALIGNED_ADDRESS: cudaError_enum

While executing a kernel, the device encountered a load or store instruction on a memory address which is not aligned. This leaves the process in an inconsistent state and any further CUDA work will return the same error. To continue using CUDA, the process must be terminated and relaunched.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_INVALID_ADDRESS_SPACE: cudaError_enum

While executing a kernel, the device encountered an instruction which can only operate on memory locations in certain address spaces (global, shared, or local), but was supplied a memory address not belonging to an allowed address space. This leaves the process in an inconsistent state and any further CUDA work will return the same error. To continue using CUDA, the process must be terminated and relaunched.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_INVALID_PC: cudaError_enum

While executing a kernel, the device program counter wrapped its address space. This leaves the process in an inconsistent state and any further CUDA work will return the same error. To continue using CUDA, the process must be terminated and relaunched.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_LAUNCH_FAILED: cudaError_enum

An exception occurred on the device while executing a kernel. Common causes include dereferencing an invalid device pointer and accessing out of bounds shared memory. Less common cases can be system specific - more information about these cases can be found in the system specific user guide. This leaves the process in an inconsistent state and any further CUDA work will return the same error. To continue using CUDA, the process must be terminated and relaunched.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_COOPERATIVE_LAUNCH_TOO_LARGE: cudaError_enum

This error indicates that the number of blocks launched per grid for a kernel that was launched via either ::cuLaunchCooperativeKernel or ::cuLaunchCooperativeKernelMultiDevice exceeds the maximum number of blocks as allowed by ::cuOccupancyMaxActiveBlocksPerMultiprocessor or ::cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags times the number of multiprocessors as specified by the device attribute ::CU_DEVICE_ATTRIBUTE_MULTIPROCESSOR_COUNT.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_NOT_PERMITTED: cudaError_enum

This error indicates that the attempted operation is not permitted.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_NOT_SUPPORTED: cudaError_enum

This error indicates that the attempted operation is not supported on the current system or device.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_SYSTEM_NOT_READY: cudaError_enum

This error indicates that the system is not yet ready to start any CUDA work. To continue using CUDA, verify the system configuration is in a valid state and all required driver daemons are actively running. More information about this error can be found in the system specific user guide.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_SYSTEM_DRIVER_MISMATCH: cudaError_enum

This error indicates that there is a mismatch between the versions of the display driver and the CUDA driver. Refer to the compatibility documentation for supported versions.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_COMPAT_NOT_SUPPORTED_ON_DEVICE: cudaError_enum

This error indicates that the system was upgraded to run with forward compatibility but the visible hardware detected by CUDA does not support this configuration. Refer to the compatibility documentation for the supported hardware matrix or ensure that only supported hardware is visible during initialization via the CUDA_VISIBLE_DEVICES environment variable.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_MPS_CONNECTION_FAILED: cudaError_enum

This error indicates that the MPS client failed to connect to the MPS control daemon or the MPS server.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_MPS_RPC_FAILURE: cudaError_enum

This error indicates that the remote procedural call between the MPS server and the MPS client failed.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_MPS_SERVER_NOT_READY: cudaError_enum

This error indicates that the MPS server is not ready to accept new MPS client requests. This error can be returned when the MPS server is in the process of recovering from a fatal failure.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_MPS_MAX_CLIENTS_REACHED: cudaError_enum

This error indicates that the hardware resources required to create MPS client have been exhausted.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_MPS_MAX_CONNECTIONS_REACHED: cudaError_enum

This error indicates the the hardware resources required to support device connections have been exhausted.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_MPS_CLIENT_TERMINATED: cudaError_enum

This error indicates that the MPS client has been terminated by the server. To continue using CUDA, the process must be terminated and relaunched.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_CDP_NOT_SUPPORTED: cudaError_enum

This error indicates that the module is using CUDA Dynamic Parallelism, but the current configuration, like MPS, does not support it.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_CDP_VERSION_MISMATCH: cudaError_enum

This error indicates that a module contains an unsupported interaction between different versions of CUDA Dynamic Parallelism.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_STREAM_CAPTURE_UNSUPPORTED: cudaError_enum

This error indicates that the operation is not permitted when the stream is capturing.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_STREAM_CAPTURE_INVALIDATED: cudaError_enum

This error indicates that the current capture sequence on the stream has been invalidated due to a previous error.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_STREAM_CAPTURE_MERGE: cudaError_enum

This error indicates that the operation would have resulted in a merge of two independent capture sequences.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_STREAM_CAPTURE_UNMATCHED: cudaError_enum

This error indicates that the capture was not initiated in this stream.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_STREAM_CAPTURE_UNJOINED: cudaError_enum

This error indicates that the capture sequence contains a fork that was not joined to the primary stream.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_STREAM_CAPTURE_ISOLATION: cudaError_enum

This error indicates that a dependency would have been created which crosses the capture sequence boundary. Only implicit in-stream ordering dependencies are allowed to cross the boundary.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_STREAM_CAPTURE_IMPLICIT: cudaError_enum

This error indicates a disallowed implicit dependency on a current capture sequence from cudaStreamLegacy.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_CAPTURED_EVENT: cudaError_enum

This error indicates that the operation is not permitted on an event which was last recorded in a capturing stream.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_STREAM_CAPTURE_WRONG_THREAD: cudaError_enum

A stream capture sequence not initiated with the ::CU_STREAM_CAPTURE_MODE_RELAXED argument to ::cuStreamBeginCapture was passed to ::cuStreamEndCapture in a different thread.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_TIMEOUT: cudaError_enum

This error indicates that the timeout specified for the wait operation has lapsed.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_GRAPH_EXEC_UPDATE_FAILURE: cudaError_enum

This error indicates that the graph update was not performed because it included changes which violated constraints specific to instantiated graph update.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_EXTERNAL_DEVICE: cudaError_enum

This indicates that an async error has occurred in a device outside of CUDA. If CUDA was waiting for an external device’s signal before consuming shared data, the external device signaled an error indicating that the data is not valid for consumption. This leaves the process in an inconsistent state and any further CUDA work will return the same error. To continue using CUDA, the process must be terminated and relaunched.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_INVALID_CLUSTER_SIZE: cudaError_enum

Indicates a kernel launch error due to cluster misconfiguration.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_FUNCTION_NOT_LOADED: cudaError_enum

Indiciates a function handle is not loaded when calling an API that requires a loaded function.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_INVALID_RESOURCE_TYPE: cudaError_enum

This error indicates one or more resources passed in are not valid resource types for the operation.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_INVALID_RESOURCE_CONFIGURATION: cudaError_enum

This error indicates one or more resources are insufficient or non-applicable for the operation.

Source§

impl cudaError_enum

Source

pub const CUDA_ERROR_UNKNOWN: cudaError_enum

This indicates that an unknown internal error has occurred.

Trait Implementations§

Source§

impl Clone for cudaError_enum

Source§

fn clone(&self) -> cudaError_enum

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for cudaError_enum

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Hash for cudaError_enum

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for cudaError_enum

Source§

fn eq(&self, other: &cudaError_enum) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for cudaError_enum

Source§

impl Eq for cudaError_enum

Source§

impl StructuralPartialEq for cudaError_enum

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.