constraints

package
v0.6.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Basic

type Basic interface {
	Ordered
	bool | []byte | rune | byte
	~bool | ~[]byte | ~rune | ~byte
}

type Float

type Float interface {
	float32 | float64
	~float32 | ~float64
}

type Int

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

type Number

type Number interface {
	Int | Float
}

type Ordered

type Ordered interface {
	Int | Float | ~string
}

Ordered 可排序类型

type SignedInt

type SignedInt interface {
	int | int8 | int16 | int32 | int64
	~int | ~int8 | ~int16 | ~int32 | ~int64
}

type UnsignedInt

type UnsignedInt interface {
	uint | uint8 | uint16 | uint32 | uint64
	~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64
}

Jump to

Keyboard shortcuts

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