Enum halide_error_code_t

Source
#[repr(i32)]
pub enum halide_error_code_t {
Show 46 variants halide_error_code_success = 0, halide_error_code_generic_error = -1, halide_error_code_explicit_bounds_too_small = -2, halide_error_code_bad_type = -3, halide_error_code_access_out_of_bounds = -4, halide_error_code_buffer_allocation_too_large = -5, halide_error_code_buffer_extents_too_large = -6, halide_error_code_constraints_make_required_region_smaller = -7, halide_error_code_constraint_violated = -8, halide_error_code_param_too_small = -9, halide_error_code_param_too_large = -10, halide_error_code_out_of_memory = -11, halide_error_code_buffer_argument_is_null = -12, halide_error_code_debug_to_file_failed = -13, halide_error_code_copy_to_host_failed = -14, halide_error_code_copy_to_device_failed = -15, halide_error_code_device_malloc_failed = -16, halide_error_code_device_sync_failed = -17, halide_error_code_device_free_failed = -18, halide_error_code_no_device_interface = -19, halide_error_code_matlab_init_failed = -20, halide_error_code_matlab_bad_param_type = -21, halide_error_code_internal_error = -22, halide_error_code_device_run_failed = -23, halide_error_code_unaligned_host_ptr = -24, halide_error_code_bad_fold = -25, halide_error_code_fold_factor_too_small = -26, halide_error_code_requirement_failed = -27, halide_error_code_buffer_extents_negative = -28, halide_error_code_unused_29 = -29, halide_error_code_unused_30 = -30, halide_error_code_specialize_fail = -31, halide_error_code_device_wrap_native_failed = -32, halide_error_code_device_detach_native_failed = -33, halide_error_code_host_is_null = -34, halide_error_code_bad_extern_fold = -35, halide_error_code_device_interface_no_device = -36, halide_error_code_host_and_device_dirty = -37, halide_error_code_buffer_is_null = -38, halide_error_code_device_buffer_copy_failed = -39, halide_error_code_device_crop_unsupported = -40, halide_error_code_device_crop_failed = -41, halide_error_code_incompatible_device_interface = -42, halide_error_code_bad_dimensions = -43, halide_error_code_device_dirty_with_no_device_support = -44, halide_error_code_storage_bound_too_small = -45,
}

Variants§

§

halide_error_code_success = 0

§

halide_error_code_generic_error = -1

§

halide_error_code_explicit_bounds_too_small = -2

§

halide_error_code_bad_type = -3

§

halide_error_code_access_out_of_bounds = -4

§

halide_error_code_buffer_allocation_too_large = -5

§

halide_error_code_buffer_extents_too_large = -6

§

halide_error_code_constraints_make_required_region_smaller = -7

§

halide_error_code_constraint_violated = -8

§

halide_error_code_param_too_small = -9

§

halide_error_code_param_too_large = -10

§

halide_error_code_out_of_memory = -11

§

halide_error_code_buffer_argument_is_null = -12

§

halide_error_code_debug_to_file_failed = -13

§

halide_error_code_copy_to_host_failed = -14

§

halide_error_code_copy_to_device_failed = -15

§

halide_error_code_device_malloc_failed = -16

§

halide_error_code_device_sync_failed = -17

§

halide_error_code_device_free_failed = -18

§

halide_error_code_no_device_interface = -19

§

halide_error_code_matlab_init_failed = -20

§

halide_error_code_matlab_bad_param_type = -21

§

halide_error_code_internal_error = -22

§

halide_error_code_device_run_failed = -23

§

halide_error_code_unaligned_host_ptr = -24

§

halide_error_code_bad_fold = -25

§

halide_error_code_fold_factor_too_small = -26

§

halide_error_code_requirement_failed = -27

§

halide_error_code_buffer_extents_negative = -28

§

halide_error_code_unused_29 = -29

§

halide_error_code_unused_30 = -30

§

halide_error_code_specialize_fail = -31

§

halide_error_code_device_wrap_native_failed = -32

§

halide_error_code_device_detach_native_failed = -33

§

halide_error_code_host_is_null = -34

§

halide_error_code_bad_extern_fold = -35

§

halide_error_code_device_interface_no_device = -36

§

halide_error_code_host_and_device_dirty = -37

§

halide_error_code_buffer_is_null = -38

§

halide_error_code_device_buffer_copy_failed = -39

§

halide_error_code_device_crop_unsupported = -40

§

halide_error_code_device_crop_failed = -41

§

halide_error_code_incompatible_device_interface = -42

§

halide_error_code_bad_dimensions = -43

§

halide_error_code_device_dirty_with_no_device_support = -44

§

halide_error_code_storage_bound_too_small = -45

Trait Implementations§

Source§

impl Clone for halide_error_code_t

Source§

fn clone(&self) -> halide_error_code_t

Returns a copy 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 halide_error_code_t

Source§

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

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

impl Hash for halide_error_code_t

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 halide_error_code_t

Source§

fn eq(&self, other: &halide_error_code_t) -> 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 halide_error_code_t

Source§

impl Eq for halide_error_code_t

Source§

impl StructuralPartialEq for halide_error_code_t

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, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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.