Skip to content

Commit 65b46d2

Browse files
committed
intoiter: Add mut ptr accessor to OwnedRepr
1 parent 7079aed commit 65b46d2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/data_repr.rs

+4
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ impl<A> OwnedRepr<A> {
5353
self.ptr.as_ptr()
5454
}
5555

56+
pub(crate) fn as_ptr_mut(&self) -> *mut A {
57+
self.ptr.as_ptr()
58+
}
59+
5660
pub(crate) fn as_nonnull_mut(&mut self) -> NonNull<A> {
5761
self.ptr
5862
}

0 commit comments

Comments
 (0)