Skip to main content

hiprtcResult

Enum hiprtcResult 

Source
#[repr(u32)]
pub enum hiprtcResult {
Show 13 variants HIPRTC_SUCCESS = 0, HIPRTC_ERROR_OUT_OF_MEMORY = 1, HIPRTC_ERROR_PROGRAM_CREATION_FAILURE = 2, HIPRTC_ERROR_INVALID_INPUT = 3, HIPRTC_ERROR_INVALID_PROGRAM = 4, HIPRTC_ERROR_INVALID_OPTION = 5, HIPRTC_ERROR_COMPILATION = 6, HIPRTC_ERROR_BUILTIN_OPERATION_FAILURE = 7, HIPRTC_ERROR_NO_NAME_EXPRESSIONS_AFTER_COMPILATION = 8, HIPRTC_ERROR_NO_LOWERED_NAMES_BEFORE_COMPILATION = 9, HIPRTC_ERROR_NAME_EXPRESSION_NOT_VALID = 10, HIPRTC_ERROR_INTERNAL_ERROR = 11, HIPRTC_ERROR_LINKING = 100,
}
Expand description

@addtogroup GlobalDefs @{

/ /** hiprtc error code

Variants§

§

HIPRTC_SUCCESS = 0

< Success

§

HIPRTC_ERROR_OUT_OF_MEMORY = 1

< Out of memory

§

HIPRTC_ERROR_PROGRAM_CREATION_FAILURE = 2

< Failed to create program

§

HIPRTC_ERROR_INVALID_INPUT = 3

< Invalid input

§

HIPRTC_ERROR_INVALID_PROGRAM = 4

< Invalid program

§

HIPRTC_ERROR_INVALID_OPTION = 5

< Invalid option

§

HIPRTC_ERROR_COMPILATION = 6

< Compilation error

§

HIPRTC_ERROR_BUILTIN_OPERATION_FAILURE = 7

< Failed in builtin operation

§

HIPRTC_ERROR_NO_NAME_EXPRESSIONS_AFTER_COMPILATION = 8

< No name expression after compilation

§

HIPRTC_ERROR_NO_LOWERED_NAMES_BEFORE_COMPILATION = 9

< No lowered names before compilation

§

HIPRTC_ERROR_NAME_EXPRESSION_NOT_VALID = 10

< Invalid name expression

§

HIPRTC_ERROR_INTERNAL_ERROR = 11

< Internal error

§

HIPRTC_ERROR_LINKING = 100

< Error in linking

Trait Implementations§

Source§

impl Clone for hiprtcResult

Source§

fn clone(&self) -> hiprtcResult

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for hiprtcResult

Source§

impl Debug for hiprtcResult

Source§

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

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

impl Eq for hiprtcResult

Source§

impl Hash for hiprtcResult

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 hiprtcResult

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for hiprtcResult

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 = !

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

fn try_from(value: U) -> Result<T, !>

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.