Home
last modified time | relevance | path

Searched refs:shrink_to_fit (Results 1 - 2 of 2) sorted by relevance

/kernel/linux/linux-6.6/rust/alloc/vec/
H A Dmod.rs294 /// [`Vec::with_capacity(0)`][`Vec::with_capacity`], or by calling [`shrink_to_fit`]
346 /// [`shrink_to_fit`] or [`shrink_to`].
384 /// [`shrink_to_fit`]: Vec::shrink_to_fit
1151 /// vec.shrink_to_fit();
1156 pub fn shrink_to_fit(&mut self) { in shrink_to_fit() functions
1158 // they are equal, so we can avoid the panic case in `RawVec::shrink_to_fit` in shrink_to_fit()
1161 self.buf.shrink_to_fit(self.len); in shrink_to_fit()
1187 self.buf.shrink_to_fit(cmp::max(self.len, min_capacity)); in shrink_to()
1220 self.shrink_to_fit(); in into_boxed_slice()
[all...]
/kernel/linux/linux-6.6/rust/alloc/
H A Draw_vec.rs395 pub fn shrink_to_fit(&mut self, cap: usize) { in shrink_to_fit() functions

Completed in 3 milliseconds