summaryrefslogtreecommitdiff
path: root/ds/elem.go
diff options
context:
space:
mode:
authorPaul Buetow <pbuetow@mimecast.com>2020-08-07 11:14:35 +0100
committerPaul Buetow <pbuetow@mimecast.com>2020-08-07 11:14:35 +0100
commitdeaa4e1c33cd2c1c75f698881918688055abfa51 (patch)
treec6a82fec9cc3030f169d0b4441a8c63dd6bd1ea1 /ds/elem.go
parentd4c15be3268ee675b0d5853a8ffdb6c4c92585e7 (diff)
add quick2
Diffstat (limited to 'ds/elem.go')
-rw-r--r--ds/elem.go12
1 files changed, 7 insertions, 5 deletions
diff --git a/ds/elem.go b/ds/elem.go
index 0589e81..22bc9d9 100644
--- a/ds/elem.go
+++ b/ds/elem.go
@@ -1,10 +1,12 @@
package ds
type Elem interface {
- Equal(a Elem) bool
- Lower(a Elem) bool
- LowerEqual(a Elem) bool
- Higher(a Elem) bool
- HigherEqual(a Elem) bool
+ Equal(e Elem) bool
+ Lower(e Elem) bool
+ LowerEqual(e Elem) bool
+ Higher(e Elem) bool
+ HigherEqual(e Elem) bool
+ Compare(e Elem) int
+ CompareCB(e Elem, lowerCB, higherCB, equalsCB func())
Int() int
}