// Swap is part of sort.Interface.
13914
func (e eventlist) Swap(i, j int) {
	e[i], e[j] = e[j], e[i]
}
680058
func (slice byTimestamp) Swap(i, j int) {
	slice[i], slice[j] = slice[j], slice[i]
}
989362
func (skv *sortableKeyvals) Swap(i, j int) {
	keyIdx, keyJdx := i*2, j*2
	valIdx, valJdx := keyIdx+1, keyJdx+1
	keyI, valI := skv.keyvals[keyIdx], skv.keyvals[valIdx]
	skv.keyvals[keyIdx], skv.keyvals[valIdx] = skv.keyvals[keyJdx], skv.keyvals[valJdx]
	skv.keyvals[keyJdx], skv.keyvals[valJdx] = keyI, valI
}
617712
func (m resourceList) Swap(i, j int) {
	m[i], m[j] = m[j], m[i]
}
714372
func (m charmResourceList) Swap(i, j int) {
	m[i], m[j] = m[j], m[i]
}
438255
func (c *serverAPIVersionMappingCollection) Swap(i, j int) {
	c.mappings[i], c.mappings[j] = c.mappings[j], c.mappings[i]
}
123420
func (s sortableCacheSources) Swap(i, j int) {
	s[i], s[j] = s[j], s[i]
}
603531
func (b *Bool) Swap(new bool) bool {
	return truthy(atomic.SwapUint32(&b.v, boolToInt(new)))
}
550618
func (s *Sorter) Swap(i, j int) {
	x := s.Slice.Index(i)
	y := s.Slice.Index(j)
	tmp := reflect.New(s.itemType).Elem()
	tmp.Set(x)
	x.Set(y)
	y.Set(tmp)
}
1193427
func (slice Sessions) Swap(i, j int) {
	s := slice[i]
	slice[i] = slice[j]
	slice[j] = s
}
1302841
func (a WorkItemInterfaceSlice) Swap(i, j int) {
	a[i], a[j] = a[j], a[i]
}
46348
func (s SortedLoginAttempts) Swap(i, j int) {
	s[i], s[j] = s[j], s[i]
}
542957
func (ms *multiSorter) Swap(i, j int) {
	ms.pods[i], ms.pods[j] = ms.pods[j], ms.pods[i]
}
1000461
func (i *Int64) Swap(n int64) int64 {
	return atomic.SwapInt64(&i.v, n)
}
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]
	}
}
686147
func (d *Duration) Swap(n time.Duration) time.Duration {
	return time.Duration(d.v.Swap(int64(n)))
}
121748
func (u UUIDSlice) Swap(i, j int) {
	u[i], u[j] = u[j], u[i]
}