We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1cd7b9d commit 9f45cc2Copy full SHA for 9f45cc2
1 file changed
src/array_string.rs
@@ -415,11 +415,13 @@ impl<const CAP: usize> ArrayString<CAP>
415
self
416
}
417
418
- fn as_ptr(&self) -> *const u8 {
+ /// Return a raw pointer to the string's buffer.
419
+ pub fn as_ptr(&self) -> *const u8 {
420
self.xs.as_ptr() as *const u8
421
422
- fn as_mut_ptr(&mut self) -> *mut u8 {
423
+ /// Return a raw mutable pointer to the string's buffer.
424
+ pub fn as_mut_ptr(&mut self) -> *mut u8 {
425
self.xs.as_mut_ptr() as *mut u8
426
427
0 commit comments