MCPcopy
hub / github.com/etcd-io/etcd / Interval

Struct Interval

pkg/adt/interval_tree.go:53–56  ·  view source on GitHub ↗

Interval implements a Comparable interval [begin, end) TODO: support different sorts of intervals: (a,b), [a,b], (a, b]

Source from the content-addressed store, hash-verified

51// Interval implements a Comparable interval [begin, end)
52// TODO: support different sorts of intervals: (a,b), [a,b], (a, b]
53type Interval struct {
54 Begin Comparable
55 End Comparable
56}
57
58// Compare on an interval gives == if the interval overlaps.
59func (ivl *Interval) Compare(c Comparable) int {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected