Lines Matching defs:truncate
1219 vec.truncate(len);
5920 s.truncate(5);
5922 s.truncate(3);
5924 s.truncate(0);
5929 s.truncate(3);
5938 s.truncate(6);
5946 s.truncate(1);
7034 v.truncate(3);
7036 v.truncate(0);
7054 v.truncate(0);
8241 v.truncate(2);
9545 v.truncate(1);
12823 catch_unwind(AssertUnwindSafe(|| q.truncate(1))).ok();
17297 /// s.truncate(2);
17303 pub fn truncate(&mut self, new_len: usize) {
17306 self.vec.truncate(new_len)
17678 #[must_use = "use `.truncate()` if you don't need the other half"]
22790 target.truncate(self.len());
22792 // target.len <= self.len due to the truncate above, so the
40458 self.truncate(other.len());
41216 /// buf.truncate(1);
41220 pub fn truncate(&mut self, len: usize) {
41605 self.truncate(0);
42324 #[must_use = "use `.truncate()` if you don't need the other half"]
42439 self.truncate(len - del);
42490 self.truncate(new_len);
44052 tester.truncate(3);
44054 tester.truncate(0);
47790 /// The [`drain`] method can emulate `truncate`, but causes the excess
47802 /// vec.truncate(2);
47811 /// vec.truncate(8);
47820 /// vec.truncate(0);
47827 pub fn truncate(&mut self, len: usize) {
47968 /// [`truncate`], [`resize`], [`extend`], or [`clear`].
47970 /// [`truncate`]: Vec::truncate
48390 * doing slice partition_dedup + truncate */
48585 self.truncate(0)
48639 #[must_use = "use `.truncate()` if you don't need the other half"]
48711 self.truncate(new_len);
48902 self.truncate(new_len);
49162 self.truncate(other.len());
49164 // self.len <= other.len due to the truncate above, so the
49679 /// you can call [`.truncate(N)`](Vec::truncate) first.
49684 /// v.truncate(2);