diff --git a/src/types/matrix.rs b/src/types/matrix.rs index cec8d1a..cd07784 100644 --- a/src/types/matrix.rs +++ b/src/types/matrix.rs @@ -688,7 +688,7 @@ impl<'a> [<$rust_name View>]<'a> { } } - pub fn matrix)>(&self, f: F) { + pub fn matrix) -> R, R>(&self, f: F) -> R { let tmp = &self.mat.matrix; let tmp_mat = $rust_name::soft_wrap(tmp as *const _ as usize as *mut _); if tmp_mat.is_ptr_null() { @@ -698,7 +698,7 @@ impl<'a> [<$rust_name View>]<'a> { } } - pub fn matrix_mut)>(&mut self, f: F) { + pub fn matrix_mut) -> R, R>(&mut self, f: F) -> R { let tmp = &mut self.mat.matrix; let mut tmp_mat = $rust_name::soft_wrap(tmp as *mut _); if tmp_mat.is_ptr_null() {