MCPcopy Create free account
hub / github.com/prometheus/common / Swap

Method Swap

model/value.go:350–350  ·  view source on GitHub ↗
(i, j int)

Source from the content-addressed store, hash-verified

348func (m Matrix) Len() int { return len(m) }
349func (m Matrix) Less(i, j int) bool { return m[i].Metric.Before(m[j].Metric) }
350func (m Matrix) Swap(i, j int) { m[i], m[j] = m[j], m[i] }
351
352func (mat Matrix) String() string {
353 matCp := make(Matrix, len(mat))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected