We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 89c478e commit bd48a20Copy full SHA for bd48a20
library/std/src/ffi/os_str.rs
@@ -558,6 +558,9 @@ impl OsString {
558
self.inner.as_mut_vec_for_path_buf()
559
}
560
561
+ /// More well behaving alternative to allowing outer types
562
+ /// full mutable access to the core `Vec`.
563
+ /// Provides plumbing to core `Vec::truncate`.
564
#[inline]
565
pub(crate) fn truncate(&mut self, len: usize) {
566
self.inner.truncate(len);
library/std/src/sys/os_str/bytes.rs
@@ -208,6 +208,9 @@ impl Buf {
208
&mut self.inner
209
210
211
212
213
214
215
216
0 commit comments