// Swap swaps the elements with indexes i and j.
//
// NOTE: This is part of the sort.Interface implementation.
483601
func (h headerBatch) Swap(i, j int) {
	h[i], h[j] = h[j], h[i]
}
11583
func (us *UnionScanExec) Swap(i, j int) {
	us.addedRows[i], us.addedRows[j] = us.addedRows[j], us.addedRows[i]
}
813458
func (err Error) Swap(i, j int) {
	err.Errors[i], err.Errors[j] = err.Errors[j], err.Errors[i]
}
580103
func (arr SortedIPs) Swap(i, j int) {
	arr[i], arr[j] = arr[j], arr[i]
}
1319929
func (h segmentHeap) Swap(i, j int) {
	h[i], h[j] = h[j], h[i]
}
121748
func (u UUIDSlice) Swap(i, j int) {
	u[i], u[j] = u[j], u[i]
}
144159
func (n *checkServiceNodeSorter) Swap(i, j int) {
	n.Nodes[i], n.Nodes[j] = n.Nodes[j], n.Nodes[i]
	n.Vec[i], n.Vec[j] = n.Vec[j], n.Vec[i]
}
1297314
func (a Args) Swap(from, to int) error {
	if from >= len(a) || to >= len(a) {
		return errors.New("index out of range")
	}
	a[from], a[to] = a[to], a[from]
	return nil
}
1285685
func (s timeSorter) Swap(i, j int) {
	s[i], s[j] = s[j], s[i]
}
32758
func (s *sstack) Swap(i, j int) {
	ib, io, jb, jo := i/blockSize, i%blockSize, j/blockSize, j%blockSize
	a, b := s.blocks[jb][jo], s.blocks[ib][io]
	if s.setIndex != nil {
		s.setIndex(a.value, i)
		s.setIndex(b.value, j)
	}
	s.blocks[ib][io], s.blocks[jb][jo] = a, b
}
449413
func (i *Uint32) Swap(n uint32) uint32 {
	return atomic.SwapUint32(&i.v, n)
}
1039916
func (r RoleList) Swap(i, j int) {
	r[i], r[j] = r[j], r[i]
}
680058
func (slice byTimestamp) Swap(i, j int) {
	slice[i], slice[j] = slice[j], slice[i]
}
136909
func (m matrix) swap(i, j, n int) {
	for k := 0; k < n; k++ {
		m[i*n+k], m[j*n+k] = m[j*n+k], m[i*n+k]
	}
}
1141529
func (it Items) Swap(i, j int) {
	it[i], it[j] = it[j], it[i]
}
130328
func (versions Versions) Swap(i, j int) {
	versions[i], versions[j] = versions[j], versions[i]
}
27048
func (a *aclIterator) Swap(i, j int) {
	a.acls[i], a.acls[j] = a.acls[j], a.acls[i]
}