Enum cudarc::nvrtc::sys::nvrtcResult
source · #[repr(u32)]pub enum nvrtcResult {
Show 13 variants
NVRTC_SUCCESS = 0,
NVRTC_ERROR_OUT_OF_MEMORY = 1,
NVRTC_ERROR_PROGRAM_CREATION_FAILURE = 2,
NVRTC_ERROR_INVALID_INPUT = 3,
NVRTC_ERROR_INVALID_PROGRAM = 4,
NVRTC_ERROR_INVALID_OPTION = 5,
NVRTC_ERROR_COMPILATION = 6,
NVRTC_ERROR_BUILTIN_OPERATION_FAILURE = 7,
NVRTC_ERROR_NO_NAME_EXPRESSIONS_AFTER_COMPILATION = 8,
NVRTC_ERROR_NO_LOWERED_NAMES_BEFORE_COMPILATION = 9,
NVRTC_ERROR_NAME_EXPRESSION_NOT_VALID = 10,
NVRTC_ERROR_INTERNAL_ERROR = 11,
NVRTC_ERROR_TIME_FILE_WRITE_FAILED = 12,
}
Variants§
NVRTC_SUCCESS = 0
NVRTC_ERROR_OUT_OF_MEMORY = 1
NVRTC_ERROR_PROGRAM_CREATION_FAILURE = 2
NVRTC_ERROR_INVALID_INPUT = 3
NVRTC_ERROR_INVALID_PROGRAM = 4
NVRTC_ERROR_INVALID_OPTION = 5
NVRTC_ERROR_COMPILATION = 6
NVRTC_ERROR_BUILTIN_OPERATION_FAILURE = 7
NVRTC_ERROR_NO_NAME_EXPRESSIONS_AFTER_COMPILATION = 8
NVRTC_ERROR_NO_LOWERED_NAMES_BEFORE_COMPILATION = 9
NVRTC_ERROR_NAME_EXPRESSION_NOT_VALID = 10
NVRTC_ERROR_INTERNAL_ERROR = 11
NVRTC_ERROR_TIME_FILE_WRITE_FAILED = 12
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 for nvrtcResult
impl PartialEq 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 for nvrtcResult
impl PartialOrd 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 StructuralPartialEq for nvrtcResult
Auto Trait Implementations§
impl Freeze for nvrtcResult
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