comparable

package
v2.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Less is alias for 0.
	Less = Compared(iota)
	// Equal is alias for 1.
	Equal
	// Greater is alias for 2.
	Greater
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Comparable

type Comparable[T any] interface {
	CompareTo(T) Compared
}

Comparable is interface for comparable objects.

type Compared

type Compared int8

Compared is alias for int8.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL