Enum cudarc::nvrtc::sys::nvrtcResult
source · #[repr(u32)]pub enum nvrtcResult {
NVRTC_SUCCESS,
NVRTC_ERROR_OUT_OF_MEMORY,
NVRTC_ERROR_PROGRAM_CREATION_FAILURE,
NVRTC_ERROR_INVALID_INPUT,
NVRTC_ERROR_INVALID_PROGRAM,
NVRTC_ERROR_INVALID_OPTION,
NVRTC_ERROR_COMPILATION,
NVRTC_ERROR_BUILTIN_OPERATION_FAILURE,
NVRTC_ERROR_NO_NAME_EXPRESSIONS_AFTER_COMPILATION,
NVRTC_ERROR_NO_LOWERED_NAMES_BEFORE_COMPILATION,
NVRTC_ERROR_NAME_EXPRESSION_NOT_VALID,
NVRTC_ERROR_INTERNAL_ERROR,
}
Variants§
NVRTC_SUCCESS
NVRTC_ERROR_OUT_OF_MEMORY
NVRTC_ERROR_PROGRAM_CREATION_FAILURE
NVRTC_ERROR_INVALID_INPUT
NVRTC_ERROR_INVALID_PROGRAM
NVRTC_ERROR_INVALID_OPTION
NVRTC_ERROR_COMPILATION
NVRTC_ERROR_BUILTIN_OPERATION_FAILURE
NVRTC_ERROR_NO_NAME_EXPRESSIONS_AFTER_COMPILATION
NVRTC_ERROR_NO_LOWERED_NAMES_BEFORE_COMPILATION
NVRTC_ERROR_NAME_EXPRESSION_NOT_VALID
NVRTC_ERROR_INTERNAL_ERROR
Implementations§
source§impl nvrtcResult
impl nvrtcResult
sourcepub fn result(self) -> Result<(), NvrtcError>
pub fn result(self) -> Result<(), NvrtcError>
Transforms into a Result of NvrtcError
Trait Implementations§
source§impl Clone for nvrtcResult
impl Clone for nvrtcResult
source§fn clone(&self) -> nvrtcResult
fn clone(&self) -> nvrtcResult
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 nvrtcResult
impl Debug for nvrtcResult
source§impl Hash for nvrtcResult
impl Hash for nvrtcResult
source§impl Ord for nvrtcResult
impl Ord for nvrtcResult
source§fn cmp(&self, other: &nvrtcResult) -> Ordering
fn cmp(&self, other: &nvrtcResult) -> 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<nvrtcResult> for nvrtcResult
impl PartialEq<nvrtcResult> for nvrtcResult
source§fn eq(&self, other: &nvrtcResult) -> bool
fn eq(&self, other: &nvrtcResult) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<nvrtcResult> for nvrtcResult
impl PartialOrd<nvrtcResult> for nvrtcResult
source§fn partial_cmp(&self, other: &nvrtcResult) -> Option<Ordering>
fn partial_cmp(&self, other: &nvrtcResult) -> 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 nvrtcResult
impl Eq for nvrtcResult
impl StructuralEq for nvrtcResult
impl StructuralPartialEq for nvrtcResult
Auto Trait Implementations§
impl RefUnwindSafe for nvrtcResult
impl Send for nvrtcResult
impl Sync for nvrtcResult
impl Unpin for nvrtcResult
impl UnwindSafe for nvrtcResult
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