-
Notifications
You must be signed in to change notification settings - Fork 54
/
cmp.go
58 lines (48 loc) · 1018 Bytes
/
cmp.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// Copyright 2014 The Azul3D Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package gfx
// Cmp represents a single comparison operator, like Less, Never, etc.
type Cmp uint8
const (
// Always is like Go's 'true', for example:
// if true {
// ...
// }
Always Cmp = iota
// Never is like Go's 'false', for example:
// if false {
// ...
// }
Never
// Less is like Go's '<', for example:
// if a < b {
// ...
// }
Less
// LessOrEqual is like Go's '<=', for example:
// if a <= b {
// ...
// }
LessOrEqual
// Greater is like Go's '>', for example:
// if a > b {
// ...
// }
Greater
// GreaterOrEqual is like Go's '>=', for example:
// if a >= b {
// ...
// }
GreaterOrEqual
// Equal is like Go's '==', for example:
// if a == b {
// ...
// }
Equal
// NotEqual is like Go's '!=', for example:
// if a != b {
// ...
// }
NotEqual
)