|
68 | 68 | RawArrayView::new_(ptr, dim, strides) |
69 | 69 | } |
70 | 70 |
|
71 | | - /// Return a read-only view of the array. |
72 | | - /// |
73 | | - /// **Warning** from a safety standpoint, this is equivalent to |
74 | | - /// dereferencing a raw pointer for every element in the array. You must |
75 | | - /// ensure that all of the data is valid and choose the correct lifetime. |
76 | | - #[inline] |
77 | | - pub unsafe fn deref_view<'a>(&self) -> ArrayView<'a, A, D> { |
78 | | - ArrayView::new_(self.ptr, self.dim.clone(), self.strides.clone()) |
79 | | - } |
80 | | - |
81 | 71 | /// Converts to a read-only view of the array. |
82 | 72 | /// |
83 | 73 | /// **Warning** from a safety standpoint, this is equivalent to |
@@ -188,26 +178,6 @@ where |
188 | 178 | unsafe { RawArrayView::new_(self.ptr, self.dim, self.strides) } |
189 | 179 | } |
190 | 180 |
|
191 | | - /// Return a read-only view of the array |
192 | | - /// |
193 | | - /// **Warning** from a safety standpoint, this is equivalent to |
194 | | - /// dereferencing a raw pointer for every element in the array. You must |
195 | | - /// ensure that all of the data is valid and choose the correct lifetime. |
196 | | - #[inline] |
197 | | - pub unsafe fn deref_view<'a>(&self) -> ArrayView<'a, A, D> { |
198 | | - ArrayView::new_(self.ptr, self.dim.clone(), self.strides.clone()) |
199 | | - } |
200 | | - |
201 | | - /// Return a read-write view of the array |
202 | | - /// |
203 | | - /// **Warning** from a safety standpoint, this is equivalent to |
204 | | - /// dereferencing a raw pointer for every element in the array. You must |
205 | | - /// ensure that all of the data is valid and choose the correct lifetime. |
206 | | - #[inline] |
207 | | - pub unsafe fn deref_view_mut<'a>(&mut self) -> ArrayViewMut<'a, A, D> { |
208 | | - ArrayViewMut::new_(self.ptr, self.dim.clone(), self.strides.clone()) |
209 | | - } |
210 | | - |
211 | 181 | /// Converts to a read-only view of the array. |
212 | 182 | /// |
213 | 183 | /// **Warning** from a safety standpoint, this is equivalent to |
|
0 commit comments