Lines Matching defs:swap
2233 v.swap(x, y);
2244 v.swap(x, y);
6535 use std::mem::{size_of, swap};
8600 a.swap(2, 4);
8604 swap(&mut n, &mut a[0]);
9680 v.swap(a, b);
11006 input.swap(a, b);
11458 d.swap(0, 3);
22382 $slice.swap(i, index as usize);
27372 None => mem::swap(self, other),
27393 None => mem::swap(self, other),
30790 // We can just swap `self` and `other` if `self` is empty.
30792 mem::swap(self, other);
35598 mem::swap(dummy, r);
35601 mem::swap(dummy, r);
40914 /// buf.swap(0, 2);
40918 pub fn swap(&mut self, i: usize, j: usize) {
40923 unsafe { ptr::swap(self.ptr().add(ri), self.ptr().add(rj)) }
41856 self.swap(index, 0);
41891 self.swap(index, length - 1);
42435 self.swap(i - del, i);
42604 // this means we have to slowly "swap" the tail and the head.
42614 // ABCDEFGHIJM...KL - swap until the left edge reaches the temp store
42626 ptr::swap(buf.add(i), buf.offset(src));
44415 use core::mem::{self, swap, ManuallyDrop};
44702 swap(&mut item, &mut self.data[0]);
44779 ptr::swap(ptr, ptr.add(end));
44993 swap(self, other);