(&self, dims: Dim4)
| 140 | type OutType = i64; |
| 141 | |
| 142 | fn generate(&self, dims: Dim4) -> Array<Self::OutType> { |
| 143 | unsafe { |
| 144 | let mut temp: af_array = std::ptr::null_mut(); |
| 145 | let err_val = af_constant_long( |
| 146 | &mut temp as *mut af_array, |
| 147 | *self, |
| 148 | dims.ndims() as c_uint, |
| 149 | dims.get().as_ptr() as *const dim_t, |
| 150 | ); |
| 151 | HANDLE_ERROR(AfError::from(err_val)); |
| 152 | temp.into() |
| 153 | } |
| 154 | } |
| 155 | } |
| 156 | |
| 157 | impl ConstGenerator for u64 { |
no test coverage detected