types

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 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 ComparableHash

type ComparableHash interface {
	comparable
	Hash() uintptr
}

ComparableHash is a type constraint that matches all comparable types with a Hash method.

type ImpossibleConstraint

type ImpossibleConstraint interface {
	comparable
	[]int
}

ImpossibleConstraint is a type constraint that no type can satisfy, because slice types are not comparable.

type Integer

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

type Number

type Number interface {
	~float32 | ~float64
}

type Ordered

type Ordered interface {
	~int | ~uint | ~float64 | ~string
}

Ordered 是匹配任何有序类型的类型约束. An ordered type is one that supports the <, <=, >, and >= operators.

Jump to

Keyboard shortcuts

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