constraintsExt

package
v0.0.0-...-e16fa26 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConvertableNumber

type ConvertableNumber interface {
	constraints.Float | constraints.Integer
}

ConvertableNumber is a type constraint matching all numbers which can be converted to another ConvertableNumber. This includes bytes and runes but not complex numbers. Candidate for inclusion in constraints package.

type Number

type Number interface {
	constraints.Float | constraints.Integer | constraints.Complex
}

Number is a type constraint matching all numbers, including bytes and runes. Candidate for inclusion in constraints package.

type OrderedNumber

type OrderedNumber interface {
	constraints.Float | constraints.Integer
}

OrderedNumber is a type constraint matching all ordered numbers, including bytes and runes but not complex numbers, which are not ordered. Candidate for inclusion in constraints package.

type Vector

type Vector[E any] interface {
	~[2]E | ~[4]E | ~[8]E | ~[16]E | ~[32]E | ~[64]E
}

Jump to

Keyboard shortcuts

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