MCPcopy Index your code
hub / github.com/arrayfire/arrayfire-rust / HANDLE_ERROR

Function HANDLE_ERROR

src/core/error.rs:89–96  ·  view source on GitHub ↗
(error_code: AfError)

Source from the content-addressed store, hash-verified

87#[allow(non_snake_case)]
88#[allow(clippy::match_wild_err_arm)]
89pub fn HANDLE_ERROR(error_code: AfError) {
90 let gaurd = match ERROR_HANDLER_LOCK.read() {
91 Ok(g) => g,
92 Err(_) => panic!("Failed to acquire lock while handling FFI return value"),
93 };
94
95 (*gaurd.deref()).call(error_code);
96}
97
98/// Fetch last error description as String
99pub fn get_last_error() -> String {

Callers 15

medianFunction · 0.85
var_v2Function · 0.85
cov_v2Function · 0.85
var_all_v2Function · 0.85
median_allFunction · 0.85
corrcoefFunction · 0.85
topkFunction · 0.85
meanvarFunction · 0.85
stdev_v2Function · 0.85
stdev_all_v2Function · 0.85
svdFunction · 0.85
svd_inplaceFunction · 0.85

Calls 1

callMethod · 0.80

Tested by

no test coverage detected