value

package
v2.0.0-...-cfe7cf8 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equal

func Equal[T any](a, b T) bool

Equal returns true iff a == b. If a or b implements Equatable, that is used to perform the test.

Types

type Equatable

type Equatable[T any] interface {
	Equal(T) bool
}

Equatable represents a type that can be compared for equality with another value.

type Key

type Key[T any] interface {
	Equatable[T]
	hash.Hashable
}

Key represents a type that can be used as a key in a Map or a Set.

Jump to

Keyboard shortcuts

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