uconst

package
v1.17.14 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Comparable

type Comparable interface {
	Equals(other Comparable) bool
}

Comparable entity

type Float

type Float interface {
	~float32 | ~float64
}

type Integer

type Integer interface {
	~int | ~int8 | ~int16 | ~int32 | ~int64 | ~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64
}

type Numeric

type Numeric interface {
	Integer | Float
}

type SignedNumeric

type SignedNumeric interface {
	~int | ~int8 | ~int16 | ~int32 | ~int64 | ~float32 | ~float64
}

type Unique

type Unique interface {
	Comparable
	UniqueKey[int64]
}

Unique specifies an abstract key with an ability to provide hash. Comparable interface can be issued to mitigate potential collisions, e.g. in hashmaps or other implementations.

type UniqueKey added in v1.17.9

type UniqueKey[T comparable] interface {
	Key() T // Key should return a unique item key. It can be a hash or just an index.
}

UniqueKey specifies an abstract key with an ability to provide hash.

Jump to

Keyboard shortcuts

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