Skip to content

Commit b2cc540

Browse files
committed
Remove deref_view and deref_view_mut
1 parent c845e71 commit b2cc540

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

src/impl_raw_views.rs

-30
Original file line numberDiff line numberDiff line change
@@ -68,16 +68,6 @@ where
6868
RawArrayView::new_(ptr, dim, strides)
6969
}
7070

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-
8171
/// Converts to a read-only view of the array.
8272
///
8373
/// **Warning** from a safety standpoint, this is equivalent to
@@ -188,26 +178,6 @@ where
188178
unsafe { RawArrayView::new_(self.ptr, self.dim, self.strides) }
189179
}
190180

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-
211181
/// Converts to a read-only view of the array.
212182
///
213183
/// **Warning** from a safety standpoint, this is equivalent to

0 commit comments

Comments
 (0)