You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: arith.rs
    path of file: ./repos/arrayfire-rust/src/core
    
    the code of the file until where you have to start completion: use super::array::Array;
use super::data::{constant, tile, ConstGenerator};
use super::defines::AfError;
use super::dim4::Dim4;
use super
    
        pub fn $fn_name<T: HasAfEnum>(input: &Array<T>) -> Array<bool> {

                let mut temp: af_array = std::ptr::null_mut();
                let err_val = unsafe { $ffi_fn(&mut temp as *mut af_array, input.get()) };
                HANDLE_ERROR(AfError::from(err_val));
                temp.into()

        }