MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / Equals

Method Equals

pkg/sql/inverted/expression.go:111–116  ·  view source on GitHub ↗

Equals returns true if this span has the same start and end as the given span.

(other Span)

Source from the content-addressed store, hash-verified

109// Equals returns true if this span has the same start and end as the given
110// span.
111func (s Span) Equals(other Span) bool {
112 if !bytes.Equal(s.Start, other.Start) {
113 return false
114 }
115 return bytes.Equal(s.End, other.End)
116}
117
118// Spans is a slice of Span objects.
119type Spans []Span

Callers 1

EqualsMethod · 0.45

Calls 1

EqualMethod · 0.45

Tested by

no test coverage detected